net_bazzline / php_component_code_generator
free as in freedom component to generate php code for class, file, method, property, constant, documentation
Installs: 1 556
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 6
Forks: 1
Open Issues: 1
Requires
- php: >=5.6
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ^5.7
README
I still like the idea but there is currently no use case to develop it anymore.
PHP Code Generator
This project aims to deliver a easy to use free as in freedom php code generator. PHPDOC-Generation is also implemented as general generation tasks like "class", "function" or "property" generation.
The build status of the current master branch is tracked by Travis CI:
This component comes with a lot of examples as well as default factories.
Take a look on ohloh.net.
The current change log can be found here.
Install
By Hand
mkdir -p vendor/net_bazzline/php_component_code_generator
cd vendor/net_bazzline/php_component_code_generator
git clone https://github.com/bazzline/php_component_code_generator .
With Packagist
composer require net_bazzline/php_component_code_generator:dev-master
Benefits
- no "new" inside classes ...
- independent and configurable indention
- no static calls
- shipped with examples and factories
- covered with unittests
- open source
- automatic phpdoc generation
Optimization Potential
- ... but "clone"
- currently not widely used
- no code review by other developers so far
- still open todo's
API
API is available at bazzline.net.
Inspired By
- php-generator
- simple-php-code-gen
- cg-library
- sensio generator bundle
- php-ide-stub-generator
- php-token-reflection
- code-generator
Final Words
Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if you use it. Donate something if you love it :-].