sebastiaanluca/php-stub-generator

This package is abandoned and no longer maintained. No replacement package was suggested.

Easily generate files and classes from stubs.

0.1.1 2017-02-17 23:59 UTC

This package is auto-updated.

Last update: 2022-03-07 15:17:02 UTC


README

Latest Version on Packagist Software License Build Status Total Downloads

Follow me on Twitter Share this package on Twitter

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.