bluebeetle/api-toolkit
JSON:API compliant toolkit for building REST APIs with Laravel.
5,252
14
| Install | |
|---|---|
composer require bluebeetle/api-toolkit |
|
| Latest Version: | v0.9.1 |
| PHP: | ^8.4 |
| License: | MIT |
| Last Updated: | Oct 1, 2026 |
| Links: | GitHub · Packagist |
Maintainer: brunogaspar
API Toolkit
JSON:API compliant toolkit for building REST APIs with Laravel.
Installation
composer require bluebeetle/api-toolkit
Quick Start
Define a resource:
final class ProductResource extends Resource
{
protected string $model = Product::class;
public function attributes(Product $product): array
{
return [
'name' => $product->name,
'code' => $product->code,
];
}
}
Use it in a controller:
final class ListController
{
public function __invoke(Request $request)
{
return QueryBuilder::for(Product::class, $request)
->fromResource(ProductResource::class)
->paginate();
}
}
Documentation
Full documentation is available at bluebeetle.pt/open-source/docs/api-toolkit.
Testing
composer test
Credits
License
Licensed under the MIT license.
Related Packages
cloudcreativity/laravel-json-api
JSON API (jsonapi.org) support for Laravel applications.
1,106,512
785
marcelgwerder/laravel-api-handler
Package providing helper functions for a Laravel REST-API
94,596
155
pixelpeter/laravel5-woocommerce-api-client
Laravel 5 wrapper for the Woocommerce REST API
106,909
123
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v0.9.1 | ^8.4 | ^13.0 | MIT | |
| v0.9.0 | ^8.4 | ^13.0 | MIT | |
| v0.8.3 | ^8.4 | ^13.0 | MIT | |
| v0.8.2 | ^8.4 | ^13.0 | MIT | |
| v0.8.1 | ^8.4 | ^13.0 | MIT | |
| v0.8.0 | ^8.4 | ^13.0 | MIT | |
| v0.7.1 | ^8.4 | ^13.0 | MIT | |
| v0.7.0 | ^8.4 | ^13.0 | MIT | |
| v0.6.0 | ^8.4 | ^13.0 | MIT | |
| v0.5.0 | ^8.4 | ^13.0 | MIT | |
| v0.4.0 | ^8.4 | ^13.0 | MIT | |
| v0.3.0 | ^8.4 | ^13.0 | proprietary | |
| v0.2.0 | ^8.4 | ^13.0 | proprietary | |
| v0.1.0 | ^8.4 | ^13.0 | proprietary |