PHPackages                             bluebeetle/api-toolkit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. bluebeetle/api-toolkit

ActiveLibrary[HTTP &amp; Networking](/categories/http)

bluebeetle/api-toolkit
======================

JSON:API compliant toolkit for building REST APIs with Laravel.

v0.8.1(2mo ago)14794↓60.5%[1 PRs](https://github.com/bluebeetlept/api-toolkit/pulls)MITPHPPHP ^8.4CI passing

Since Apr 30Pushed 2w ago1 watchersCompare

[ Source](https://github.com/bluebeetlept/api-toolkit)[ Packagist](https://packagist.org/packages/bluebeetle/api-toolkit)[ RSS](/packages/bluebeetle-api-toolkit/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (11)Versions (14)Used By (0)

API Toolkit
===========

[](#api-toolkit)

[![Tests](https://github.com/bluebeetlept/api-toolkit/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/bluebeetlept/api-toolkit/actions?query=workflow%3Atests)[![Code Analysis](https://github.com/bluebeetlept/api-toolkit/actions/workflows/code-analysis.yml/badge.svg?branch=main)](https://github.com/bluebeetlept/api-toolkit/actions?query=workflow%3Acode-analysis)[![License](https://camo.githubusercontent.com/a421c030ad5d69e8587d3ba9b430a08d3aa7bb99050afc065ca897c50eaa8489/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626c7565626565746c6570742f6170692d746f6f6c6b69743f6c6162656c3d4c6963656e7365)](https://opensource.org/licenses/MIT)

JSON:API compliant toolkit for building REST APIs with Laravel.

Installation
------------

[](#installation)

```
composer require bluebeetle/api-toolkit
```

Quick Start
-----------

[](#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
-------------

[](#documentation)

Full documentation is available at [bluebeetle.pt/open-source/docs/api-toolkit](https://bluebeetle.pt/open-source/docs/api-toolkit).

Testing
-------

[](#testing)

```
composer test
```

Credits
-------

[](#credits)

- [Blue Beetle](https://bluebeetle.pt)
- [All Contributors](../../contributors)

License
-------

[](#license)

Licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance93

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

10

Last Release

60d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8f0c0b617b2b745b57819576f7e38e21e6aa6cb47e63ebf78cbe905fae392a3?d=identicon)[brunogaspar](/maintainers/brunogaspar)

---

Top Contributors

[![brunogaspar](https://avatars.githubusercontent.com/u/2285372?v=4)](https://github.com/brunogaspar "brunogaspar (49 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (5 commits)")

---

Tags

apilaravelrestJSON-APItoolkit

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/bluebeetle-api-toolkit/health.svg)

```
[![Health](https://phpackages.com/badges/bluebeetle-api-toolkit/health.svg)](https://phpackages.com/packages/bluebeetle-api-toolkit)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k30.2M151](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M136](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77922.3M186](/packages/laravel-mcp)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M133](/packages/roots-acorn)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
