New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bluebeetle/api-toolkit

JSON:API compliant toolkit for building REST APIs with Laravel.
7,789 14
Install
composer require bluebeetle/api-toolkit
Latest Version:v0.10.0
PHP:^8.4
Laravel:13
License:MIT
Last Updated:Oct 20, 2026
Links: GitHub  ·  Packagist
Maintainer: brunogaspar

API Toolkit

Tests Code Analysis License

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

nebo15/lumen.rest

Components for fast building REST API for Lumen

3,759 1
wisoot/jwt-guard

Laravel Guard Driver using JSON Web Token (JWT)

703 6
lujo/lumen-rest

Lumen package for creating simple REST API

97 1
izupet/laravel-api

Laravel REST api helpers

63 6
mleczek/laravel-rest

Laravel package with a set of helpful tools for building REST API.

59 5

Version History

Version Released PHP Laravel License
v0.10.0 ^8.4 ^13.0 MIT
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