PHPackages                             staskjs/laravel-rest - 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. staskjs/laravel-rest

ActiveLibrary[API Development](/categories/api)

staskjs/laravel-rest
====================

All you need to quickly create REST controllers

1.6.3(8y ago)14.7k1PHP

Since Mar 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/staskjs/laravel-rest)[ Packagist](https://packagist.org/packages/staskjs/laravel-rest)[ RSS](/packages/staskjs-laravel-rest/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (21)Used By (0)

Digitalquill Laravel REST instrumentary
=======================================

[](#digitalquill-laravel-rest-instrumentary)

Why?
----

[](#why)

Everytime projects need a REST api to work with, it finished with lots of duplicate code all over the place and what is worse, in multiple projects.

So to handle this problem, this repository was created.

For now it contains only one controller from which you can extend to get all those standard REST functions.

Controller is highly customizible by overriding some functions.

Please refer to [source code](src/RestController.php) to see what you can do.

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

[](#installation)

```
composer require staskjs/laravel-rest

```

Then register service provider in `config/app.php`:

```
Staskjs\Rest\RestServiceProvider::class

```

Then just extend your controller from `\Staskjs\Rest\RestController`, register `resource` route (`Route::resource`) pointing to your controller and you are good to go!

Usage
-----

[](#usage)

You can add Form Request Validation to every request there is.

Simple override these parameters with class to use.

```
protected $storeRequest = ModelStoreRequest::class;

// Same with other requests, if needed

```

For simpler approach to validation, override `rules` method to return array of validation rules.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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 ~24 days

Recently: every ~9 days

Total

20

Last Release

2922d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1155633?v=4)[Stanislav Karpov](/maintainers/staskjs)[@staskjs](https://github.com/staskjs)

---

Top Contributors

[![staskjs](https://avatars.githubusercontent.com/u/1155633?v=4)](https://github.com/staskjs "staskjs (15 commits)")[![Egorvah](https://avatars.githubusercontent.com/u/1837627?v=4)](https://github.com/Egorvah "Egorvah (1 commits)")[![laraveldevelopertr](https://avatars.githubusercontent.com/u/34605942?v=4)](https://github.com/laraveldevelopertr "laraveldevelopertr (1 commits)")

### Embed Badge

![Health badge](/badges/staskjs-laravel-rest/health.svg)

```
[![Health](https://phpackages.com/badges/staskjs-laravel-rest/health.svg)](https://phpackages.com/packages/staskjs-laravel-rest)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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