carlosv2 / makeup
Data rendering by template
1.0.0
2017-07-24 22:44 UTC
Requires
- php: ~5.6 || ~7.0
- carlosv2/can: ^1.4
- symfony/expression-language: ^3.3
Requires (Dev)
- phpspec/phpspec: ^3.4
This package is not auto-updated.
Last update: 2024-11-18 08:06:01 UTC
README
The templates for data formats.
Why
It is easy to find amazing projects like Twig to render data easily in HTML or text format but when you need to build an API that returns the data in JSON or XML format you don't have many options:
- You can compose the objects in the controller at the cost of loosing reusability.
- You can build a layer of DTOs and factories at the cost of loosing maintainability.
This projects aims to fix both problems by providing a templating engine for pure data.
Install
Open a command console, enter your project directory and execute the following command to download the latest stable version of this project:
$ composer require carlosv2/makeup
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Documentation
You can find the documentation here.