carlosv2/makeup

Data rendering by template

1.0.0 2017-07-24 22:44 UTC

This package is not auto-updated.

Last update: 2024-04-22 05:28:55 UTC


README

The templates for data formats.

License Build Status SensioLabsInsight

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.