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

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

lomkit/laravel-rest-api
=======================

A package to build quick and robust rest api for the Laravel framework.

v2.20.0(2mo ago)59152.2k↓11.5%32[7 PRs](https://github.com/Lomkit/laravel-rest-api/pulls)MITPHPPHP ^8.2CI passing

Since Jul 30Pushed 2mo ago8 watchersCompare

[ Source](https://github.com/Lomkit/laravel-rest-api)[ Packagist](https://packagist.org/packages/lomkit/laravel-rest-api)[ GitHub Sponsors](https://github.com/GautierDele)[ RSS](/packages/lomkit-laravel-rest-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (72)Used By (0)Security (1)

[![Social Card of Laravel Permission](https://raw.githubusercontent.com/Lomkit/art/main/laravel-rest-api/cover.png)](https://raw.githubusercontent.com/Lomkit/art/main/laravel-rest-api/cover.png)

Laravel Rest Api
================

[](#laravel-rest-api)

Laravel Rest Api is an elegant way to expose your app through an API, it takes full advantage of the Laravel ecosystem such as Policies, Controllers, Eloquent, ...

Requirements
------------

[](#requirements)

PHP 8.2+ and Laravel 11+

Documentation, Installation, and Usage Instructions
---------------------------------------------------

[](#documentation-installation-and-usage-instructions)

See the [documentation](https://laravel-rest-api.lomkit.com) for detailed installation and usage instructions.

What It Does
------------

[](#what-it-does)

You'll find multiple endpoints exposed when using this package such as mutating, searching, showing, deleting, ...

Here is a quick look at what you can do using API search method:

```
// POST api/posts/search
{
    "search": {
        "scopes": [
            {"name": "withTrashed", "parameters": [true]}
        ],
        "filters": [
            {
                "field": "id", "operator": ">", "value": 1, "type": "or"
            },
            {
                "nested": [
                    {"field": "user.posts.id", "operator": "", "value": 3, "type": "or"}
                ]
            }
        ],
        "sorts": [
            {"field": "user_id", "direction": "desc"},
            {"field": "id", "direction": "asc"}
        ],
        "selects": [
            {"field": "id"}
        ],
        "includes": [
            {
                "relation": "posts",
                "filters": [
                     {"field": "id", "operator": "in", "value": [1, 3]}
                ],
                "limit": 2
            },
            {
                "relation": "user",
                "filters": [
                    {
                        "field": "languages.pivot.boolean",
                        "operator": "=",
                        "value": true
                    }
                ]
            }
        ],
        "aggregates": [
            {
                "relation": "stars",
                "type": "max",
                "field": "rate",
                "filters": [
                    {"field": "approved", "value": true}
                ]
            },
        ],
        "instructions": [
          {
            "name": "odd-even-id",
            "fields": [
              { "name": "type", "value": "odd" }
            ]
          }
        ],
        "gates": ["create", "view"],
        "page": 2,
        "limit": 10
    }
}

```

Roadmap
-------

[](#roadmap)

- Metrics support
- Refactor the response class
- Alias for includes

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity52

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 86.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 ~14 days

Total

70

Last Release

62d ago

Major Versions

v0.4.6 → v1.0.02023-08-31

v1.2.0 → v2.0.02023-10-19

PHP version history (3 changes)v0.1.0-betaPHP ^7.3|^8.0

v0.4.2PHP ^8.0

v2.9.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12382966?v=4)[Gautier DELEGLISE](/maintainers/GautierDele)[@GautierDele](https://github.com/GautierDele)

---

Top Contributors

[![GautierDele](https://avatars.githubusercontent.com/u/12382966?v=4)](https://github.com/GautierDele "GautierDele (284 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (22 commits)")[![Samoht70](https://avatars.githubusercontent.com/u/84769336?v=4)](https://github.com/Samoht70 "Samoht70 (5 commits)")[![ThanhSonITNIC](https://avatars.githubusercontent.com/u/44719741?v=4)](https://github.com/ThanhSonITNIC "ThanhSonITNIC (4 commits)")[![15g-lucas](https://avatars.githubusercontent.com/u/127982751?v=4)](https://github.com/15g-lucas "15g-lucas (4 commits)")[![erhanurgun](https://avatars.githubusercontent.com/u/20555797?v=4)](https://github.com/erhanurgun "erhanurgun (3 commits)")[![nowocynEmfits](https://avatars.githubusercontent.com/u/140813072?v=4)](https://github.com/nowocynEmfits "nowocynEmfits (3 commits)")[![sneakylenny](https://avatars.githubusercontent.com/u/60601502?v=4)](https://github.com/sneakylenny "sneakylenny (1 commits)")[![coderabbitai[bot]](https://avatars.githubusercontent.com/in/347564?v=4)](https://github.com/coderabbitai[bot] "coderabbitai[bot] (1 commits)")[![edepauw](https://avatars.githubusercontent.com/u/52237626?v=4)](https://github.com/edepauw "edepauw (1 commits)")[![CorentinCousse](https://avatars.githubusercontent.com/u/75204089?v=4)](https://github.com/CorentinCousse "CorentinCousse (1 commits)")[![crockalet](https://avatars.githubusercontent.com/u/60240500?v=4)](https://github.com/crockalet "crockalet (1 commits)")

---

Tags

apigraphqllaravelrestapilaravelrestgraphqllomkit

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k48.1M236](/packages/api-platform-core)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[francescomalatesta/laravel-api-boilerplate-jwt

An API Boilerplate to create a ready-to-use REST API in seconds.

1.2k7.5k](/packages/francescomalatesta-laravel-api-boilerplate-jwt)[guanguans/laravel-api-response

Normalize and standardize Laravel API response data structure. - 规范化和标准化 Laravel API 响应数据结构。

485.6k](/packages/guanguans-laravel-api-response)[xtend-packages/rest-presenter

REST API Presenter &amp; Generator for Laravel

771.5k](/packages/xtend-packages-rest-presenter)

PHPackages © 2026

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