PHPackages                             evgeny-l/rest-api-core - 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. evgeny-l/rest-api-core

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

evgeny-l/rest-api-core
======================

REST API Core. Handles REST API requests and responses.

v0.8.0(4y ago)21.1k↓33.3%2MITPHPPHP &gt;=7.0CI failing

Since May 11Pushed 4y ago2 watchersCompare

[ Source](https://github.com/evgeny-l/rest-api-core)[ Packagist](https://packagist.org/packages/evgeny-l/rest-api-core)[ RSS](/packages/evgeny-l-rest-api-core/feed)WikiDiscussions master Synced 1mo ago

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

Laravel 5 REST API Core
-----------------------

[](#laravel-5-rest-api-core)

### Install

[](#install)

Require this package with composer using the following command:

```
composer require evgeny-l/rest-api-core
```

After updating composer, add the service provider to the `providers` array in `config/app.php`

```
EvgenyL\RestAPICore\RestAPICoreServiceProvider::class,
```

Publish the config file to `config/rest-api-core.php`

```
php artisan vendor:publish --provider="EvgenyL\RestAPICore\RestAPICoreServiceProvider" --tag=config
```

Install exceptions handler to `app/Exceptions/Handler.php`:

```
use EvgenyL\RestAPICore\Http\Exceptions\APIJSONHandlerTrait;

...
    public function render($request, Exception $exception)
    {
        if ($request->expectsJson()) {
            return $this->handleJSONResponse($request, $exception);
        }
        return parent::render($request, $exception);
    }

...

```

Install response middleware for JSON formatting into API middleware section:

```
\EvgenyL\RestAPICore\Http\Middleware\ResponseFormat::class

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

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

Recently: every ~383 days

Total

11

Last Release

1530d ago

PHP version history (2 changes)v0.5PHP &gt;=5.6.4

v0.6.6PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/969e3e61af9f398c791c20636fa890cc37fa0724aa45c1ad99302ebbebc93301?d=identicon)[evgeny-l](/maintainers/evgeny-l)

---

Top Contributors

[![evgeny-l](https://avatars.githubusercontent.com/u/1212736?v=4)](https://github.com/evgeny-l "evgeny-l (12 commits)")[![kerbylav](https://avatars.githubusercontent.com/u/1224839?v=4)](https://github.com/kerbylav "kerbylav (1 commits)")[![Qraxin](https://avatars.githubusercontent.com/u/9401869?v=4)](https://github.com/Qraxin "Qraxin (1 commits)")[![TimofeySemenenko](https://avatars.githubusercontent.com/u/11330519?v=4)](https://github.com/TimofeySemenenko "TimofeySemenenko (1 commits)")

---

Tags

apilaravelrestapi-core

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/evgeny-l-rest-api-core/health.svg)

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

###  Alternatives

[lomkit/laravel-rest-api

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

59152.2k](/packages/lomkit-laravel-rest-api)[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)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[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)
