PHPackages                             venya/lp-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. venya/lp-rest

ActiveLibrary[API Development](/categories/api)

venya/lp-rest
=============

Зависимость для работы с REST АПИ для Lumen | Laravel

1.4.1(7y ago)14.4k1Apache-2.0PHPPHP &gt;=7.0.0

Since Aug 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/vench/lara_rest)[ Packagist](https://packagist.org/packages/venya/lp-rest)[ RSS](/packages/venya-lp-rest/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (68)Used By (0)

\#Lp api rest

This package allows you to create a simple REST API on the basis of standard models (Eloquent) of the Larave 5.x Framework.

\##install

- composer require venya/lp-rest

\##Configure

- Add app.php

    ```
      $app->register(LpRest\RestServiceProvider::class);

      //$app->register(LpRest\RestServiceProviderLumen::class); //for Lumen

    ```
- Add in AppServiceProvider::register

    ```
      //Set model aliases
      app()->afterResolving(CommonRepositoryModelProvider::class,
              function(CommonRepositoryModelProvider $mp) {
            $mp->addModelAliases('user', \App\User::class);
        });

      //Change access provider
      $this->app->bind(CommonRepositoryAccessProvider::class, ApiAccessProvider::class );

      //Change response schema
      $this->app->bind(CommonResponse::class, ApiCustomResponse::class );

      //Custom routes and etc
      $this->app->afterResolving(RestServiceHelper::class,
                  function(RestServiceHelper $sp) {
                      $sp->setRouteGroupOptions([
                          'prefix'         => 'api/rest',
                          //'middleware'     => 'auth',
                      ]);
                  });

    ```

\##API

- GET /api/rest/:modelName\[/:relations\] - get all items
- GET /api/rest/:modelName/:id\[/:relations\] - get one item
- POST /api/rest/:modelName {:json body} - create item
- PUT /api/rest/:modelName/:id {:json body} - update item
- DELETE /api/rest/:modelName/:id - remove item
- POST /api/rest/:modelName/:id {:json body - arguments} - Call model method
- POST /api/rest/multi {:json body - config any query} - Causes several methods at a time

TODO FILTER DESCRIPTION
-----------------------

[](#todo-filter-description)

- /api/rest/file?filter\[\]=created\_at:range:2018-03-01,2018-05-20&amp;filter\[\]=tags.id:1&amp;filter\[\]=id:in:1,2,3,18

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

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

Total

67

Last Release

2696d ago

Major Versions

0.2.5 → 1.0.12018-03-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c355f2782d69124333c3a7ece74e575b66856d7544d11031bd6ad169be72f9d?d=identicon)[vench](/maintainers/vench)

---

Top Contributors

[![vench](https://avatars.githubusercontent.com/u/6245539?v=4)](https://github.com/vench "vench (67 commits)")[![gegerka](https://avatars.githubusercontent.com/u/23461485?v=4)](https://github.com/gegerka "gegerka (1 commits)")

---

Tags

laravellumenrest-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/venya-lp-rest/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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