Download the PHP package moova/optimus-architect without Composer
On this page you can find all versions of the php package moova/optimus-architect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moova/optimus-architect
More information about moova/optimus-architect
Files in moova/optimus-architect
Package optimus-architect
Short Description moova.io fork for esbenp/architect package
License MIT
Homepage https://github.com/moovaio/architect
Informations about the package optimus-architect
Architect
Introduction
Architect is used for dynamically creating new structures for API resource relationships. Sounds confusing and pretentious?
Imagine you have a resource Book
with a related resource Author
.
Normal embedded mode
This is how related resources are loaded by default using embedded mode.
With Architect now you can load related resources using ids
mode and
sideloading
mode
Ids mode
Only load the IDs of the related resource. Using the primary key property of Eloquent models is in the roadmap.
Sideloading mode
Hoist the related resources into the global scope and leave behind the IDs using the ID mode resolver.
Usage
Architect works with normal array's (collections and resources), Illuminate\Support\Collection
and Illuminate\Database\Eloquent\Model
.
Optimus\LaravelController gives nice convenience methods to define the Architect relationships in query parameters.
Installation
Standards
This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request.
Testing
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.