PHPackages                             pablolovera/modules-laravel-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. pablolovera/modules-laravel-api

ActiveLibrary[API Development](/categories/api)

pablolovera/modules-laravel-api
===============================

Modules for API's RESTFul based on laravel 5.\*

1.0.0(9y ago)124MITPHPPHP &gt;=5.5.9

Since Jul 1Pushed 9y ago1 watchersCompare

[ Source](https://github.com/pablolovera/modules-laravel-api)[ Packagist](https://packagist.org/packages/pablolovera/modules-laravel-api)[ Docs](https://github.com/pablolovera/modules-laravel-api)[ RSS](/packages/pablolovera-modules-laravel-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (10)Versions (2)Used By (0)

Modules for API's RESTFul based on laravel 5.\*
-----------------------------------------------

[](#modules-for-apis-restful-based-on-laravel-5)

SOLID principles...

### Install

[](#install)

```
composer require pablolovera/modules-laravel-api

```

#### Add ServiceProvider on config/app.php

[](#add-serviceprovider-on-configappphp)

```
PabloLovera\ModulesLaravel\Providers\ModulesServiceProvider::class,

```

#### Add the Facade in `aliases` array

[](#add-the-facade-in-aliases-array)

For OAuth2

```
'Authorizer' => LucaDegasperi\OAuth2Server\Facades\Authorizer::class,

```

For Fractal

```
'Fractal' => Cyvelnet\Laravel5Fractal\Facades\Fractal::class

```

#### Publish config

[](#publish-config)

```
php artisan vendor:publish --provider="PabloLovera\ModulesLaravel\Providers\ModulesServiceProvider"

```

### How to use...

[](#how-to-use)

#### First step (IMPORTANT)

[](#first-step-important)

Create the `Core` module. It's very important!

```
php artisan module:make-core

```

Then... see the directory `app/Core/`

#### Create the other modules...

[](#create-the-other-modules)

```
php artisan make:module

```

Then... see the directory `app/Modules/`

When a new module is created, you need add provider in `config/app.php`, like a `App\Modules\\Providers\ServiceProvider::class,`

### Commands available

[](#commands-available)

`php artisan ...`

##### Create Module

[](#create-module)

```
make:module

```

##### Create Controller for existing module

[](#create-controller-for-existing-module)

```
module:make-controller

```

So... created in `app/Modules//Http/Controllers/`

##### Create Entity for existing module

[](#create-entity-for-existing-module)

```
module:make-entity

```

So... created in `app/Modules//Entities/`

##### Create Entity Contract for existing module

[](#create-entity-contract-for-existing-module)

```
module:make-entity-contract

```

So... created in `app/Modules//Contracts/Entities/`

##### Create Repository for existing module

[](#create-repository-for-existing-module)

```
module:make-repository

```

So... created in `app/Modules//Repositories/`

##### Create Repository Contract for existing module

[](#create-repository-contract-for-existing-module)

```
module:make-repository-contract

```

So... created in `app/Modules//Contracts/Repositories/`

##### Create Service for existing module

[](#create-service-for-existing-module)

```
module:make-service

```

So... created in `app/Modules//Services/`

##### Create Service Contract for existing module

[](#create-service-contract-for-existing-module)

```
module:make-service-contract

```

So... created in `app/Modules//Contracts/Services/`

##### Create Request for existing module

[](#create-request-for-existing-module)

```
module:make-request

```

So... created in `app/Modules//Http/Requests/`

##### Create Seeder for existing module

[](#create-seeder-for-existing-module)

```
module:make-seeder

```

So... created in `app/Modules//Database/seeds/`

##### Create Migration for existing module

[](#create-migration-for-existing-module)

```
module:make-migration

```

So... created in `app/Modules//Database/migrations/`

##### Executing Migration for existing module

[](#executing-migration-for-existing-module)

```
module:migrate

```

or

```
module:migrate  --seed

```

##### Create Service Provider for existing module

[](#create-service-provider-for-existing-module)

```
module:make-service-provider

```

So... created in `app/Modules//Providers/`

##### Create Transformer for existing module

[](#create-transformer-for-existing-module)

```
module:make-transformer

```

So... created in `app/Modules//Transformers/`

### The following packages are also used

[](#the-following-packages-are-also-used)

[lucadegasperi/oauth2-server-laravel](https://github.com/lucadegasperi/oauth2-server-laravel)[Cyvelnet/laravel5-fractal](https://github.com/Cyvelnet/laravel5-fractal)

### Licence

[](#licence)

[MIT Licence](https://github.com/pablolovera/modules-laravel-api/blob/master/LICENSE)

###  Health Score

25

—

LowBetter than 39% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3553d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3197bd587d9daf9ac015d500690d3fbddcc078eb399b982dbab8e239a94ec0f1?d=identicon)[pablolovera](/maintainers/pablolovera)

---

Tags

laravelmodulesRESTful APIlaravel 5 api rest

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pablolovera-modules-laravel-api/health.svg)

```
[![Health](https://phpackages.com/badges/pablolovera-modules-laravel-api/health.svg)](https://phpackages.com/packages/pablolovera-modules-laravel-api)
```

###  Alternatives

[obiefy/api-response

Simple Laravel package to return Json responses.

17324.4k](/packages/obiefy-api-response)[bmatovu/laravel-mtn-momo

Laravel MTN MOMO integration.

14310.7k](/packages/bmatovu-laravel-mtn-momo)[casperlaitw/laravel-fb-messenger

A Laravel Package to Integrate Facebook Messenger API

10431.5k](/packages/casperlaitw-laravel-fb-messenger)[alibori/laravel-api-resource-generator

Package to generate API resources from models.

222.6k](/packages/alibori-laravel-api-resource-generator)

PHPackages © 2026

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