Skip to content

gpassebon/jad

 
 

JAD

JSON Api ❤️ Doctrine ORM

Build Status License: MIT

JAD is a library created for rapid development of JSON API backend REST implementation. You can run JAD as a standalone server with php -S (see demo), or you can use it as a middleware in your framework.

It turns doctrine entities (doctrine/doctrine2) to a JSON API resource, or collection of resources automagically.

Requirements

You need to have Doctrine installed and preferably setup before you can use Jad.

Install

composer require oligus/jad

Quick start

$jad = new Jad(new Jad\Map\AnnotationMapper($em));
$jad->setPathPrefix('/api/v1/jad');
$jad->jsonApiResult();

Contents

Mapping your entities

Fetching the resources

Pagination

Ordering

Fetching resources with relationships

Creating a new resource

Updating a resource

Deleting resources / relationships

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue before making a pull request.

Authors

  • Oli Gustafsson - Initial work - oligus

License

This project is licensed under the MIT License - see the LICENSE file for details

About

JSON Api to Doctrine

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%