tdt / formatters
Formats PHP arrays, PHP objects and RDF triples in a lot of formats.
v0.0.8
2013-08-07 15:13 UTC
Requires
- mustache/mustache: dev-master
- tdt/exceptions: dev-master
- tdt/negotiators: dev-master
- tdt/pages: dev-master
Suggests
- tdt/core: RESTful API to configure several inputs to format using these formatters
This package is auto-updated.
Last update: 2024-10-29 04:09:17 UTC
README
Formats PHP arrays, PHP objects and RDF triples in a lot of formats. We serve all.
Caveat lector: it loads all objects in memory and does not support streaming. This means the only acceptable objects/arrays/triplegraphs are not much more than 1MB.
Request for pull requests
Is a formatter lacking? Does a formatter contain a mistake? Don't hesitate to fork and file pull requests!
install
Include the formatters in your project by creating a composer.json file with a requirement: "tdt/formatters"=>"dev-master". Then do:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install
usage
Check the example directory