sebastiaanluca / php-stub-generator
Easily generate files and classes from stubs.
Requires
- php: ^7
- illuminate/support: ^5.3
Requires (Dev)
- phpunit/phpunit: ^6
- raveren/kint: ^1
This package is auto-updated.
Last update: 2022-03-07 15:17:02 UTC
README
Easily generate files and classes from stubs. Ideal for e.g. additional Laravel make commands!
Install
Via Composer:
composer require sebastiaanluca/php-stub-generator
Usage
$stub = new StubGenerator( __DIR__ . '/stubs/migration.stub', $target ); $stub->render([ ':CLASS_NAME:' => 'CreateUsersTable', ':TABLE_NAME:' => 'users', ]);
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
composer install
composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email security@sebastiaanluca.com instead of using the issue tracker.
Credits
About
My name is Sebastiaan and I'm a freelance back-end developer specializing in building high-end, custom Laravel applications. Check out my portfolio for more information and my other packages to kick-start your next project. Have a project that could use some guidance? Send me an e-mail at hello@sebastiaanluca.com!
License
The MIT License (MIT). Please see License File for more information.