PHPackages                             brainstud/laravel-patchable-api-resource - 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. brainstud/laravel-patchable-api-resource

ActiveLibrary[API Development](/categories/api)

brainstud/laravel-patchable-api-resource
========================================

A route generator that generates distinct put and patch endpoints

v2.0.0(2mo ago)05.7k—3.1%MITPHPPHP ^8.5

Since Nov 22Pushed 2mo agoCompare

[ Source](https://github.com/brainstudnl/laravel-patchable-api-resource)[ Packagist](https://packagist.org/packages/brainstud/laravel-patchable-api-resource)[ RSS](/packages/brainstud-laravel-patchable-api-resource/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (4)Versions (14)Used By (0)

Laravel Patchable API Resource
==============================

[](#laravel-patchable-api-resource)

`laravel-patchable-api-resource` is a faster way to register patchable API resources in your routes file.

By registering a route as `patchable-api-resource` it differentiates between `PUT` and `PATCH` and calls the `update()` or `patch()` method on your controller.

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

[](#installation)

Require the package

```
composer require brainstud/laravel-patchable-api-resource
```

Add the following to `bootstrap/app.php`:

```
$app->singleton(
    'router',
    \Brainstud\PatchableApiResource\PatchableApiResourceRouter::class
);
```

Usage
-----

[](#usage)

Registering a patchable API-resource works the same as the default `Route::apiResource` and `Route::apiResources` methods.

```
// api.php

Route::patchableApiResources([
    'items' => ItemsController::class,
]);

Route::patchableApiResource('items', ItemController::class);
```

License
-------

[](#license)

laravel-patchable-api-resource is open-sourced software licensed under the [MIT License](LICENSE)

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance85

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~160 days

Recently: every ~369 days

Total

11

Last Release

79d ago

Major Versions

v1.0.12 → v2.0.02026-04-16

PHP version history (5 changes)v1.0.1PHP ^8.0

v1.0.7PHP ^8.0 || ^9.0

v1.0.10PHP ^8.1

v1.0.11PHP ^8.2

v2.0.0PHP ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/59a4113e79a9d7d16cf8857d4f256eabf9cd2a546b692a9ffb02b2ab86799567?d=identicon)[Diondb](/maintainers/Diondb)

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

---

Top Contributors

[![brdv](https://avatars.githubusercontent.com/u/44579145?v=4)](https://github.com/brdv "brdv (5 commits)")[![Diondb](https://avatars.githubusercontent.com/u/84917298?v=4)](https://github.com/Diondb "Diondb (3 commits)")[![Reinand](https://avatars.githubusercontent.com/u/133855289?v=4)](https://github.com/Reinand "Reinand (1 commits)")

### Embed Badge

![Health badge](/badges/brainstud-laravel-patchable-api-resource/health.svg)

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

###  Alternatives

[nuwave/lighthouse

A framework for serving GraphQL from Laravel

3.5k11.8M117](/packages/nuwave-lighthouse)[psalm/plugin-laravel

Psalm plugin for Laravel

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

OData v4.01 Producer for Laravel

99351.7k](/packages/flat3-lodata)[ovac/idoc

Generate beautiful API documentation from your Laravel application

185484.6k2](/packages/ovac-idoc)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5443.8k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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