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.22.3(2w ago)60067.0k↓41.8%35[10 issues](https://github.com/Lomkit/laravel-rest-api/issues)[3 PRs](https://github.com/Lomkit/laravel-rest-api/pulls)MITPHPPHP ^8.2CI passing

Since Jul 30Pushed 1w ago7 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 2w ago

READMEChangelog (10)Dependencies (25)Versions (81)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 12+

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

65

—

FairBetter than 99% of packages

Maintenance97

Actively maintained with recent releases

Popularity52

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 83.8% 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

79

Last Release

18d 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 (290 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 (8 commits)")[![15g-lucas](https://avatars.githubusercontent.com/u/127982751?v=4)](https://github.com/15g-lucas "15g-lucas (6 commits)")[![ThanhSonITNIC](https://avatars.githubusercontent.com/u/44719741?v=4)](https://github.com/ThanhSonITNIC "ThanhSonITNIC (4 commits)")[![nowocynEmfits](https://avatars.githubusercontent.com/u/140813072?v=4)](https://github.com/nowocynEmfits "nowocynEmfits (3 commits)")[![erhanurgun](https://avatars.githubusercontent.com/u/20555797?v=4)](https://github.com/erhanurgun "erhanurgun (3 commits)")[![martinsoenen](https://avatars.githubusercontent.com/u/17437652?v=4)](https://github.com/martinsoenen "martinsoenen (2 commits)")[![AlzUrt](https://avatars.githubusercontent.com/u/26257809?v=4)](https://github.com/AlzUrt "AlzUrt (2 commits)")[![sneakylenny](https://avatars.githubusercontent.com/u/60601502?v=4)](https://github.com/sneakylenny "sneakylenny (1 commits)")[![mjamaldub](https://avatars.githubusercontent.com/u/142377502?v=4)](https://github.com/mjamaldub "mjamaldub (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)")[![coderabbitai[bot]](https://avatars.githubusercontent.com/in/347564?v=4)](https://github.com/coderabbitai[bot] "coderabbitai[bot] (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/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[api-platform/core

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

2.6k52.2M377](/packages/api-platform-core)[binaryk/laravel-restify

Laravel REST API helpers

679422.0k](/packages/binaryk-laravel-restify)[marcin-orlowski/laravel-api-response-builder

Helps building nice, normalized and easy to consume Laravel REST API.

852505.1k4](/packages/marcin-orlowski-laravel-api-response-builder)[guanguans/laravel-api-response

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

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

REST API Presenter &amp; Generator for Laravel

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

PHPackages © 2026

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