PHPackages                             sinemacula/laravel-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. [API Development](/categories/api)
4. /
5. sinemacula/laravel-api-toolkit

ActiveLibrary[API Development](/categories/api)

sinemacula/laravel-api-toolkit
==============================

A comprehensive Laravel toolkit for streamlined development of RESTful APIs

v1.16.4(4mo ago)217.9k—6.9%1[9 PRs](https://github.com/sinemacula/laravel-api-toolkit/pulls)Apache-2.0PHPPHP ^8.3CI passing

Since Aug 6Pushed 3d ago1 watchersCompare

[ Source](https://github.com/sinemacula/laravel-api-toolkit)[ Packagist](https://packagist.org/packages/sinemacula/laravel-api-toolkit)[ RSS](/packages/sinemacula-laravel-api-toolkit/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (32)Versions (78)Used By (0)

Laravel API Toolkit
===================

[](#laravel-api-toolkit)

[![Latest Stable Version](https://camo.githubusercontent.com/343cfbb5c5c6d9ba1a34b45a814b6f3162177ec0514f5db403344d0e4b35f5ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696e656d6163756c612f6c61726176656c2d6170692d746f6f6c6b69742e737667)](https://packagist.org/packages/sinemacula/laravel-api-toolkit)[![Build Status](https://github.com/sinemacula/laravel-api-toolkit/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/sinemacula/laravel-api-toolkit/actions/workflows/tests.yml)[![Maintainability](https://camo.githubusercontent.com/17f8cd79d5b869a3d4865e3ddc2a61236ecae9166ad25eb27300aa3abddf5f33/68747470733a2f2f716c74792e73682f67682f73696e656d6163756c612f70726f6a656374732f6c61726176656c2d6170692d746f6f6c6b69742f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/sinemacula/projects/laravel-api-toolkit)[![Code Coverage](https://camo.githubusercontent.com/00195082431ba469db90cfa93862a82ae38e9d242e0539806e64988bbd0605ac/68747470733a2f2f716c74792e73682f67682f73696e656d6163756c612f70726f6a656374732f6c61726176656c2d6170692d746f6f6c6b69742f636f7665726167652e737667)](https://qlty.sh/gh/sinemacula/projects/laravel-api-toolkit)[![Total Downloads](https://camo.githubusercontent.com/bdac223f789d582a9ab24c46957f31f0fa9193f58b4800442be093dd7dc41b20/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696e656d6163756c612f6c61726176656c2d6170692d746f6f6c6b69742e737667)](https://packagist.org/packages/sinemacula/laravel-api-toolkit)

The Laravel API Toolkit is a comprehensive package designed to simplify the development of RESTful APIs in Laravel. It provides tools to enhance API functionality, improve error handling, and ensure consistent data output, making API development faster and more reliable.

Features
--------

[](#features)

- **Exception Handling**: Implements a custom exception handler that captures and formats all exceptions for consistent API error responses.
- **Queryable Models**: Allows fine-tuned control over which fields are exposed via your API endpoints, enhancing security and customization.
- **Data Repositories**: Abstracts database interactions into repositories to promote a cleaner and more maintainable codebase.
- **Data Resources**: Ensures consistent presentation of data across different API endpoints, simplifying client-side data integration.

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

[](#installation)

To install the Laravel API Toolkit, run the following command in your project directory:

```
composer require sinemacula/laravel-api-toolkit
```

Configuration
-------------

[](#configuration)

After installation, publish the package configuration to customize it according to your needs:

```
php artisan vendor:publish --provider="SineMacula\ApiServiceProvider"
```

This command publishes the package configuration file to your application's config directory, allowing you to modify aspects such as exception handling behaviors, data repository settings, and more.

Usage
-----

[](#usage)

Detailed usage instructions will be provided soon. This section will cover how to integrate the toolkit into your Laravel application, including setting up queryable models, using data repositories, and applying data transformers.

Contributing
------------

[](#contributing)

Contributions are welcome and will be fully credited. We accept contributions via pull requests on GitHub.

Security
--------

[](#security)

If you discover any security related issues, please email instead of using the issue tracker.

License
-------

[](#license)

The Laravel API Toolkit repository is open-sourced software licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0).

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 97.1% 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 ~10 days

Total

58

Last Release

107d ago

Major Versions

1.x-dev → 2.x-dev2026-03-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/6262ea965c244b0c946a2f29a94da05e30846c066a0b59399466216654c78fe6?d=identicon)[sinemacula](/maintainers/sinemacula)

---

Top Contributors

[![sinemacula-ben](https://avatars.githubusercontent.com/u/118753672?v=4)](https://github.com/sinemacula-ben "sinemacula-ben (401 commits)")[![michaelstivala](https://avatars.githubusercontent.com/u/4493561?v=4)](https://github.com/michaelstivala "michaelstivala (6 commits)")[![derrickschoen](https://avatars.githubusercontent.com/u/13784912?v=4)](https://github.com/derrickschoen "derrickschoen (2 commits)")[![sine-macula-dependencies[bot]](https://avatars.githubusercontent.com/in/4130001?v=4)](https://github.com/sine-macula-dependencies[bot] "sine-macula-dependencies[bot] (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![maticb](https://avatars.githubusercontent.com/u/3185053?v=4)](https://github.com/maticb "maticb (1 commits)")

---

Tags

apilaravelrestfultoolkitsine macula

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/cashier

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

2.6k29.9M146](/packages/laravel-cashier)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M150](/packages/laravel-mcp)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

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