Download the PHP package jamosaur/foundation without Composer
On this page you can find all versions of the php package jamosaur/foundation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package foundation
Foundation
What is this?
This is the base that I like to use for constructing API's with Laravel.
It is essentially a wrapper for spatie's laravel-fractal.
Installation
composer require jamosaur/foundation
- Update your API controllers to extend
Jamosaur\Foundation\ApiController
. This extends the default Laravel controller but also adds more methods that we will use. - Update your API middleware in
app\Http\Kernel.php
to useJamosaur\Foundation\Middleware\ApiRequestMiddleware
Example Usage
Controller
Important Notes
- Transformers MUST implement
Jamosaur\Foundation\Contracts\TransformerContract
and extendLeague\Fractal\TransformerAbstract
All versions of foundation with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0|^8.1|^8.2
illuminate/routing Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
spatie/laravel-fractal Version ^6.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/routing Version ^8.0|^9.0|^10.0|^11.0
illuminate/http Version ^8.0|^9.0|^10.0|^11.0
spatie/laravel-fractal Version ^6.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
The package jamosaur/foundation contains the following files
Loading the files please wait ....