https://github.com/fourhundredfour/doctrine-lombok
A Doctrine library to create getter/setter at runtime with annotations.
https://github.com/fourhundredfour/doctrine-lombok
annotations doctrine doctrine-annotations doctrine-library hacktoberfest lombok php
Last synced: 5 months ago
JSON representation
A Doctrine library to create getter/setter at runtime with annotations.
- Host: GitHub
- URL: https://github.com/fourhundredfour/doctrine-lombok
- Owner: fourhundredfour
- License: apache-2.0
- Created: 2020-08-13T09:28:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-22T22:26:50.000Z (over 5 years ago)
- Last Synced: 2024-05-02T04:22:58.883Z (about 2 years ago)
- Topics: annotations, doctrine, doctrine-annotations, doctrine-library, hacktoberfest, lombok, php
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# doctrine-lombok
A Doctrine library to create getter/setter at runtime with annotations.
## Index
* [Requirements](#requirements)
* [Usage](#usage)
* [Badges](#badges)
## Requirements
* Doctrine
* >=PHP 7.4
## Usage
```php
// my_source/Entity/User.php
loadClasses(__DIR__ . '/my_source');
foreach ($classNames as $className) {
$annotation->parseClassByClassName($className);
}
$user = new User();
$user->setUsername('fourhundredfour');
echo $user->getUsername(); // Access to the private property
```
## Badges
[](https://sonarcloud.io/dashboard?id=fourhundredfour_doctrine-lombok)
[](https://sonarcloud.io/dashboard?id=fourhundredfour_doctrine-lombok)
[](https://sonarcloud.io/dashboard?id=fourhundredfour_doctrine-lombok)
[](https://sonarcloud.io/dashboard?id=fourhundredfour_doctrine-lombok)
[](https://sonarcloud.io/dashboard?id=fourhundredfour_doctrine-lombok)
[](https://sonarcloud.io/dashboard?id=fourhundredfour_doctrine-lombok)
[](https://sonarcloud.io/dashboard?id=fourhundredfour_doctrine-lombok)
[](https://sonarcloud.io/dashboard?id=fourhundredfour_doctrine-lombok)