PHPackages                             woodynadobhar/dingo2generators - 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. woodynadobhar/dingo2generators

ActiveLibrary

woodynadobhar/dingo2generators
==============================

Laravel REST API scaffolding.

07PHP

Since Jun 29Pushed 7y ago2 watchersCompare

[ Source](https://github.com/WoodyNaDobhar/dingo2generators)[ Packagist](https://packagist.org/packages/woodynadobhar/dingo2generators)[ RSS](/packages/woodynadobhar-dingo2generators/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

[![Codacy Badge](https://camo.githubusercontent.com/66fa917d0f0de2846a9df5e7d2b0578a58cf27000a7c279a8220f890c5ea16eb/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6264633638346663346463383437303861346364323031616537303439396136)](https://www.codacy.com/app/YanDatsyuk/Laravel-REST-API-generator?utm_source=github.com&utm_medium=referral&utm_content=YanDatsyuk/Laravel-REST-API-generator&utm_campaign=Badge_Grade)[![License](https://camo.githubusercontent.com/f45d904953153ca304a2328243d2733e095eee13a631a1f390709885d41dd692/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2f6672616d65776f726b2f6c6963656e73652e737667)](https://packagist.org/packages/woodynadobhar/dingo2generators)

Laravel REST API Generator
==========================

[](#laravel-rest-api-generator)

Code scaffolding for REST API project by database schema. This package is available also on [packagist](https://packagist.org/packages/woodynadobhar/dingo2generators). And installation via packagist is preferred way.

Examples
--------

[](#examples)

There are two open source REST API projects on GitHub, developed using this generator:

- [Social network](https://github.com/YanDatsyuk/social-network-rest-api-backend)
- [Appartment rentals](https://github.com/YanDatsyuk/apartment-rentals-rest-api-backend)

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

[](#installation)

### Package installation

[](#package-installation)

- add `"woodynadobhar/dingo2generators": "dev-master"` to your composer.json (node `"require"`)
- set `"minimum-stability": "dev"` in your composer.json
- run `composer update`

### Configuration

[](#configuration)

Open your `config/app.php` and add this line in `providers` section

```
WoodyNaDobhar\Dingo2Generators\GeneratorsServiceProviders::class,
Dingo\Api\Provider\LaravelServiceProvider::class,
Way\Generators\GeneratorsServiceProvider::class,
Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider::class,
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
L5Swagger\L5SwaggerServiceProvider::class,
Abhijitghogre\LaravelDbClearCommand\LaravelDbClearCommandServiceProvider::class,
Felixkiss\UniqueWithValidator\ServiceProvider::class,
```

### Publishing configuration files

[](#publishing-configuration-files)

Execute command

```
php artisan vendor:publish
```

Open your `config/jwt.php` and change line with a user's model namespace.

```
'user' => 'App\REST\User',
```

### Configurating .env file

[](#configurating-env-file)

- set proper connection to the database
- add configuration for dingo/api package. See [detailed docs here](https://github.com/dingo/api/wiki/Configuration)
- required configuration string is `API_DOMAIN=yourdomain.dev`

### Register middleware

[](#register-middleware)

Add middleware to App/Http/Kernel.php to the $routeMiddleware array.

```
'check.role.access' => \WoodyNaDobhar\Dingo2Generators\Middleware\CheckAccess::class,
```

### Swagger configuration

[](#swagger-configuration)

Add '/routes' path in 'config/l5-swagger.php', annotation path.

```
'annotations' => [base_path('app'), base_path('routes')],
```

### Database schema

[](#database-schema)

Make sure, that you have created database schema. For generating relations you should have FOREIGN KEY Constraints.

Generating code for REST API project
====================================

[](#generating-code-for-rest-api-project)

- Run artisan command for code scaffolding.

```
php artisan make:rest-api-project
```

- Generate swagger documentation.

```
php artisan l5-swagger:generate
```

- Execute command

```
composer dump-autoload
```

- 🐘 💥 👍 👍

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.7% 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/e219983a2b7b8aae291a5b576044e6f02a79d58560c62febf9054293ec38b9c8?d=identicon)[WoodyNaDobhar](/maintainers/WoodyNaDobhar)

---

Top Contributors

[![YanDatsiuk](https://avatars.githubusercontent.com/u/3888040?v=4)](https://github.com/YanDatsiuk "YanDatsiuk (64 commits)")[![WoodyNaDobhar](https://avatars.githubusercontent.com/u/1338540?v=4)](https://github.com/WoodyNaDobhar "WoodyNaDobhar (9 commits)")

### Embed Badge

![Health badge](/badges/woodynadobhar-dingo2generators/health.svg)

```
[![Health](https://phpackages.com/badges/woodynadobhar-dingo2generators/health.svg)](https://phpackages.com/packages/woodynadobhar-dingo2generators)
```

PHPackages © 2026

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