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

ActiveLibrary

prusmarcin/laravel-rest-server
==============================

Package Rest Full Server for Laravel 5.6

04PHP

Since Apr 10Pushed 8y agoCompare

[ Source](https://github.com/prusmarcin/laravel-rest-server)[ Packagist](https://packagist.org/packages/prusmarcin/laravel-rest-server)[ RSS](/packages/prusmarcin-laravel-rest-server/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-rest-server
===================

[](#laravel-rest-server)

Package Rest Full API server for Laravel

You can see package Client API [package laravel-rest-client](https://github.com/prusmarcin/laravel-rest-client) for use on a separate Laravel installation

[![Total Downloads](https://camo.githubusercontent.com/e292b62be2c3683f42fa30a94052201713c6e4afee87aee565c61e036ec64ac1/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f707275736d617263696e2f6c61726176656c2d726573742d7365727665722e737667)](https://packagist.org/packages/prusmarcin/laravel-rest-server)[![Latest Stable Version](https://camo.githubusercontent.com/4dab60e4d85dbfa948c87a93bb146630e4fe08c85c88f125be66694507a51329/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f707275736d617263696e2f6c61726176656c2d726573742d7365727665722e737667)](https://packagist.org/packages/prusmarcin/laravel-rest-server)[![License](https://camo.githubusercontent.com/5a911ddcd16b9110e7821386ffd8d637005a8b856c14a3c0861b955e91da4eba/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265792e737667)](https://github.com/prusmarcin/laravel-rest-server/blob/master/LICENSE)

- [Installation](#installation)
- [Usage](#usage)
- [Testing](#testing)
- [Author](#author)
- [License](#license)

Installation
------------

[](#installation)

To install this package you will need:

```
Laravel 5 (see compatibility table)
PHP 7.0 +

```

Install via composer - edit your `composer.json` to require the package.

```
{
    "require": {
        "prusmarcin/laravel-rest-server": "dev-master"
    }
}
```

Then run `composer update` in your terminal to pull it in.

Or via the command line in the root of your application installation.

```
$ composer require prusmarcin/laravel-rest-server
```

Once this has finished, you will need to add the service provider to the `providers` array in your `app.php` config as follows:

```
\Restserver\RestserverServiceProvider::class,
```

And configure the database connection in `.env` file for your Laravel installation.

Run migration

```
$ php artisan migrate
```

Note: If you have error when you run migration: "Specified key was too long error solution". Read this article:

Run seeder

```
$ php artisan db:seed --class=Restserver\\Seeds\\DatabaseSeeder
```

Run laravel server

```
$ php artisan serve
```

And you're done!

Usage
-----

[](#usage)

Returns

```
[{"id":5,"name":"Produkt 8","amount":2},{"id":4,"name":"Produkt 7","amount":6},{"id":2,"name":"Produkt 2","amount":12},{"id":1,"name":"Produkt 1","amount":4}]
```

More methods: [![Screenshot](route-list.jpg)](route-list.jpg)

Testing
-------

[](#testing)

Run laravel server

```
$ php artisan serve
```

Then run the tests with:

```
$ vendor/bin/phpunit vendor/prusmarcin/laravel-rest-server
```

Author
------

[](#author)

- [Prus Marcin](https://github.com/prusmarcin)
- [Portfolio](https://prusmarcin.pl/)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/prusmarcin/laravel-rest-server/blob/master/LICENSE) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc40f499d770cdd4f34717cc85e85ad8b45a8cccff1e79d548f489a969b0ce09?d=identicon)[prusmarcin](/maintainers/prusmarcin)

---

Top Contributors

[![prusmarcin](https://avatars.githubusercontent.com/u/36367239?v=4)](https://github.com/prusmarcin "prusmarcin (24 commits)")

### Embed Badge

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

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

PHPackages © 2026

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