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.phpto useJamosaur\Foundation\Middleware\ApiRequestMiddleware
Example Usage
Controller
Important Notes
- Transformers MUST implement
Jamosaur\Foundation\Contracts\TransformerContractand extendLeague\Fractal\TransformerAbstract
All versions of foundation with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/routing Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-fractal Version ^6.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
spatie/laravel-fractal Version ^6.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
The package jamosaur/foundation contains the following files
Loading the files please wait ...