Download the PHP package nilportugues/serializer-eloquent without Composer
On this page you can find all versions of the php package nilportugues/serializer-eloquent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nilportugues/serializer-eloquent
More information about nilportugues/serializer-eloquent
Files in nilportugues/serializer-eloquent
Package serializer-eloquent
Short Description Eloquent Driver for NilPortugues Serializer outputting valid API responses in JSON, JSON API and HAL+JSON API formats.
License MIT
Homepage http://nilportugues.com
Informations about the package serializer-eloquent
Serializer Driver for Eloquent ORM Models
What?
This is a driver for the Serializer library caring of Eloquent ORM model serialization.
Why?
Due to the popularity of Eloquent, specially in Laravel apps, a driver has been develop to unite all Eloquent serialization edge-cases for Serializer in a single library.
Installation
Use Composer to install the package:
Usage
This will return an array following the Serializer format.
Todo
Code all examples provided in the Eloquent documentation for relationships as tests:
- [X] One To One
- [X] One To Many
- [X] Has Many Through
- [ ] Polymorphic Relations
- [ ] Many To Many
- [ ] Many To Many Polymorphic Relations
Contribute
Contributions to the package are always welcome!
- Report any bugs or issues you find on the issue tracker.
- You can grab the source code at the package's Git repository.
Support
Get in touch with me using one of the following means:
- Emailing me at [email protected]
- Opening an Issue
Authors
License
The code base is licensed under the MIT license.
All versions of serializer-eloquent with dependencies
nilportugues/serializer Version ^1
illuminate/database Version ^5.1
illuminate/pagination Version ^5.1