torchello / pretty-printer

[sub] Generates code from given Model, using templates

Home Page:http://memio.github.io/memio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memio's PrettyPrinter SensioLabsInsight Travis CI

PrettyPrinter is a code generator (printer) that takes a Model and calls the appropriate TemplateEngine to actually generate the corresponding code, using highly opinionated coding standards (pretty).

PrettyPrinter returns a string that can be saved in a file, displayed on a console output or displayed in a web page. Possibilities are endless!

Note: This package is part of Memio. Have a look at the main repository.

Installation

Install it using Composer:

composer require memio/pretty-printer:^2.0

Want to know more?

Memio uses phpspec, which means the tests also provide the documentation. Not convinced? Then clone this repository and run the following commands:

composer install
./vendor/bin/phpspec run -n -f pretty

You can see the current and past versions using one of the following:

And finally some meta documentation:

About

[sub] Generates code from given Model, using templates

http://memio.github.io/memio

License:MIT License


Languages

Language:PHP 100.0%