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

ActiveLibrary[API Development](/categories/api)

nemesis/laravel-rest
====================

REST actions for controllers

3.0.1(7y ago)02.5k1PHP

Since Apr 3Pushed 7y ago1 watchersCompare

[ Source](https://github.com/nemesis1988/laravel-rest)[ Packagist](https://packagist.org/packages/nemesis/laravel-rest)[ RSS](/packages/nemesis-laravel-rest/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (9)Used By (0)

Laravel REST actions
--------------------

[](#laravel-rest-actions)

Package included CRUD action traits, service trait, ApiController and transformer

How to install:

```
composer require nemesis/laravel-rest
```

or add in **composer.json** record to require block **require**:

```
For Laravel >=5.3
```json
"nemesis/laravel-rest": "*"

```

Using
-----

[](#using)

Extend You controllers from Nemesis\\LaravelRest\\Controllers\\ApiController and use action traits for him/

In Nemesis\\LaravelRest\\Traits\\Actions\* isset CRUD operations for controller

You need to set $modelClass variable in controller and using action traits

```
    class SomeController
    {
        use IndexAction, ShowAction, StoreAction, UpdateAction, DestroyAction;

        protected $modelClass = SomeModel::class;
    }
```

If any of the methods that do not need it, just remove it

If you need all action, use GeneralActions

baseQueryFilter
---------------

[](#basequeryfilter)

if you need filtering data by default conditions, use baseQueryFilter method on you controller:

```
    public function baseQueryFilter($query)
    {
        return $query->where('owner', Auth::user()->id);
    }
```

default paginate
----------------

[](#default-paginate)

ItemService trait have static variable $defaultPaginate. You will change it in your controllers

Filter using
------------

[](#filter-using)

Package include [filter](https://github.com/nemesis1988/FilterAndSorting%7Cfilter).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

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

Recently: every ~167 days

Total

8

Last Release

2676d ago

Major Versions

1.0.2 → 2.0.02017-05-03

2.0.2 → 3.0.02018-04-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8348454?v=4)[nemesis1988](/maintainers/nemesis1988)[@nemesis1988](https://github.com/nemesis1988)

---

Top Contributors

[![nemesis1988](https://avatars.githubusercontent.com/u/8348454?v=4)](https://github.com/nemesis1988 "nemesis1988 (21 commits)")

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M952](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M128](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M62](/packages/knuckleswtf-scribe)[kyon147/laravel-shopify

Shopify package for Laravel to aide in app development

485302.1k](/packages/kyon147-laravel-shopify)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[justbetter/laravel-magento-client

A client to interact with Magento

50111.9k14](/packages/justbetter-laravel-magento-client)

PHPackages © 2026

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