2017 © Pedro Peláez
 

library generator

Use a directory of twig templates and a context generator class to scaffold out boilerplate code.

image

codesleeve/generator

Use a directory of twig templates and a context generator class to scaffold out boilerplate code.

  • Friday, April 25, 2014
  • by kelt
  • Repository
  • 3 Watchers
  • 2 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Generator

Quickstart

Checkout sleeve.phar to get started generating., (*1)

Or you can manually work with the Console\Application, (*2)

    $app = new Codesleeve\Generator\Console\Application('some name', '1.0.0')

    $app->setupGenerators(getcwd(), __DIR__);

    $app->run();

How does it work?

This project creates a vanilla generator setup which can be configured for any type of boilerplate generation., (*3)

This is really to be used as a third-party library that mediates the workflow for any kind of custom generator templates. If you want to see it in action then check out our Laravel 4 generator sleeve.phar., (*4)

Of course you don't have to use it with Laravel, it could be used to generate code for another framework or language, if that is your cup of tea., (*5)

Here is the main idea., (*6)

If you combine variables + templates + parser then you have created a generator., (*7)

This flowchart might help with understanding how everything all comes together., (*8)

Flowchart Diagram For How Generator Works, (*9)

License

The codesleeve generator is open-source software licensed under the MIT license, (*10)

Tests

If you want to see some pretty tests, then run tests run, (*11)

    vendor/bin/phpspec run

The Versions

25/04 2014

dev-master

9999999-dev

Use a directory of twig templates and a context generator class to scaffold out boilerplate code.

  Sources   Download

The Requires

 

The Development Requires