cristianoc72 / psr2-code-generator
This package is abandoned and no longer maintained.
The author suggests using the susina/psr2-code-generator package instead.
Toolset for generating PHP code following PSR-2 standard
2.1.1
2019-07-25 11:05 UTC
Requires
- php: >=7.2
- gossi/docblock: ~1
- phootwork/collection: ^1.6
- phootwork/lang: ^0.9.0
- symfony/options-resolver: ^3|^4
Requires (Dev)
- phpunit/phpunit: ^8
- vimeo/psalm: ^3.2
This package is auto-updated.
Last update: 2020-04-08 13:25:50 UTC
README
Psr2-code-generator is a library to generate PHP code programmatically, via a nice fluent api. This library is a light version of the awesome https://github.com/gossi/php-code-generator, refactored to generate PSR-2 code.
Differences and restrictions from the original library:
- php 7.2+ strictly typed
- generate PSR-2 code ONLY
- generate only php 7.1+ code (strict types)
- possibility to generate typed class properties (php 7.4)
- no reflection nor reverse engeneering
- generate only classes (no standalone functions)
Installation
Install via Composer:
composer require cristianoc72/psr2-code-generator
Documentation
Documentation is available at https://cristianoc72.github.io/psr2-code-generator
Contributing
Feel free to fork and submit a pull request. Don't forget the tests and PSR-2 standard, of course.