PHPackages                             iramgutierrez/lumen-resource-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. [API Development](/categories/api)
4. /
5. iramgutierrez/lumen-resource-api

ActiveLibrary[API Development](/categories/api)

iramgutierrez/lumen-resource-api
================================

Create a resource API for Lumen 5.3: entity, repository, manager, validator, controller, migration, table , route and documentation

1.3.4(9y ago)2771MITPHPPHP &gt;=5.5.9

Since Nov 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/iramgutierrez/lumen-resource-api)[ Packagist](https://packagist.org/packages/iramgutierrez/lumen-resource-api)[ RSS](/packages/iramgutierrez-lumen-resource-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

Resource API Generator for Lumen 5.3
====================================

[](#resource-api-generator-for-lumen-53)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

[![Total Downloads](https://camo.githubusercontent.com/b4c56aaad888427c60dfb25a95c3e54ccafc4ec92c182dac11864b05454fcd58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6972616d67757469657272657a2f6c756d656e2d7265736f757263652d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iramgutierrez/lumen-resource-api)

Full resource generator for API RESTful,

This package implements the layers pattern design, include:

- Entity
- Controller
- Manager
- Validator
- Repository
- Migration
- Route
- Documentation (Require [apidocjs](http://apidocjs.com) installed)

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

[](#installation)

Add the following line to your `composer.json` file:

```
"iramgutierrez/lumen-resource-api": "1.3.*"

```

Run `composer update` to get the package.

Once composer has installed the package add this line of code in your `bootstrap/app.php` file:

```
$app->register(\IramGutierrez\API\APIServiceProvider::class);

```

### Migrations and Configuration Publishing

[](#migrations-and-configuration-publishing)

Add this line of code to the `$commands` protected array located in your `app/Console/Kernel.php` file:

```
\Laravelista\LumenVendorPublish\VendorPublishCommand::class

```

Run `php artisan vendor:publish` to publish this package configuration and migrations. Afterwards you can edit the file `config/resource_api.php` to set the namespace for the resources generated.

Run migration to create required tables

```
php artisan migrate

```

Usage
-----

[](#usage)

Now, you should have available the Artisan command: `create-resource-api` and can be used like this:

```
php artisan create-resource-api {Entity}

```

### Example

[](#example)

Run

```
php artisan create-resource-api Test

```

And, the command ask you for the table name:

```
Table name [tests]:

```

namespace:

```
Path name [API]:

```

prefix route:

```
Prefix route []:

```

if do you want generate documentation:

```
Generate documentation? (Require apidocjs) (yes/no) [yes]:

```

if do you want generate the migration file:

```
Generate migration? (yes/no) [yes]:

```

if do you want run migration:

```
Run migration? (yes/no) [yes]:

```

if do you want add the route resource in `routes.php` file:

```
Add routes resource? (yes/no) [yes]:

```

and if do you want add some middleware:

```
Middlewares or middleware groups (comma separated) []:

```

When the execution is finished, you should have available the following functional routes:

RouteMethodUsesAction/testsGETAPI\\TestController@indexRequest all tests/testsPOSTAPI\\TestController@storeStore a test/tests/:idGETAPI\\TestController@showRequest a specific test/tests/:idPUTAPI\\TestController@updateUpdate a specific test/tests/:idDELETEAPI\\TestController@destroyDelete a specific testLicense
-------

[](#license)

The Lumen Resource API package is released under [the MIT License](LICENSE).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

3509d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2603447?v=4)[Iram Gutiérrez](/maintainers/iramgutierrez)[@iramgutierrez](https://github.com/iramgutierrez)

---

Top Contributors

[![iramgutierrez](https://avatars.githubusercontent.com/u/2603447?v=4)](https://github.com/iramgutierrez "iramgutierrez (19 commits)")

### Embed Badge

![Health badge](/badges/iramgutierrez-lumen-resource-api/health.svg)

```
[![Health](https://phpackages.com/badges/iramgutierrez-lumen-resource-api/health.svg)](https://phpackages.com/packages/iramgutierrez-lumen-resource-api)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.6k](/packages/larastan-larastan)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76518.2M120](/packages/laravel-mcp)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)

PHPackages © 2026

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