PHPackages                             bramf/crud-generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bramf/crud-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bramf/crud-generator
====================

Crud generator for lumen with Open Api annotations

v3.4(2y ago)41.5k1[1 issues](https://github.com/Bramf24/CrudGenerator/issues)MITPHP

Since Mar 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Bramf24/CrudGenerator)[ Packagist](https://packagist.org/packages/bramf/crud-generator)[ RSS](/packages/bramf-crud-generator/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (98)Used By (0)

Crud Generator
==============

[](#crud-generator)

Lumen package for generate crud controller,model and routes

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

[](#installation)

Run commands below:

```
composer require bramf/crud-generator
```

Environment Variables
---------------------

[](#environment-variables)

After installing package change database connection settings and put SWAGGER\_VERSION,PACKAGE\_AUTHOR variable to your .env file:

`DB_CONNECTION=YOUR_DB_TYPE[for example mysql,pgsql]`
`DB_HOST=DATABASE_HOST`
`DB_PORT=DATABASE_PORT`
`DB_DATABASE=DATABASE_NAME`
`DB_USERNAME=DATABASE_USERNAME`
`DB_PASSWORD=DATABASE_PASSWORD`

`SWAGGER_VERSION=3.0`
`PACKAGE_AUTHOR=AUTHOR_NAME`

Configuration
-------------

[](#configuration)

Add CrudGeneratorProvider to providers section in bootstrap/app.php:

```
/*
|--------------------------------------------------------------------------
| Register Service Providers
|--------------------------------------------------------------------------
|
| Here we will register all of the application's service providers which
| are used to bind services into the container. Service providers are
| totally optional, so you are not required to uncomment this line.
|
*/
// $app->register(App\Providers\AppServiceProvider::class);
// $app->register(App\Providers\AuthServiceProvider::class);
// $app->register(App\Providers\EventServiceProvider::class);
$app->register(Flipbox\LumenGenerator\LumenGeneratorServiceProvider::class);
$app->register(Bramf\CrudGenerator\CrudGeneratorServiceProvider::class);
```

Uncomment the $app-&gt;withEloquent() and $app-&gt;withFacades() call in your bootstrap/app.php:

```
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| Here we will load the environment and create the application instance
| that serves as the central piece of this framework. We'll use this
| application as an "IoC" container and router for this framework.
|
*/

$app = new Laravel\Lumen\Application(
    dirname(__DIR__)
);

$app->withFacades();

$app->withEloquent();
```

Run package migrations:

```
php artisan migrate
```

Usage
-----

[](#usage)

Before use command you need to create and run migration, that creates table for CRUD operations, for example:

```
php artisan make:migration create_tests_table
```

```
php artisan migrate
```

Commands
--------

[](#commands)

```
php artisan make:crud
```

Command will ask you required parameters to make CRUD:

`Controller name:`
`>`
`CRUD url:`
`>`
`Model name:`
`>`
`Table name:`
`>`

- Controller name: name of controller for CRUD operations.
- CRUD url: route for CRUD operations. For example, value api/test will generate routes like this:

```
/**
* Controller routes
*/
$router->group(["prefix"=>"api/test"],function() use($router){
    // CRUD
    $router->post("/","TestController@create");
    $router->get("/","TestController@all");
    $router->get("/{id}","TestController@get");
    $router->put("/{id}","TestController@update");
    $router->delete("/{id}","TestController@delete");
});
```

- Model name: name of model for CRUD operations.
- Table name: name of table for CRUD operations.

You can check new routes with command

```
php artisan route:list
```

This command also calls

```
php artisan make:swagger
```

command, that generate json file with open api annotations. File location:

```
./public/swagger.json
```

Additional commands:
--------------------

[](#additional-commands)

```
php artisan crud:route
```

Delete crud route group by id, or all route groups, if you set id = 0

```
php artisan make:crud:table
```

Generate CRUD for all your tables. You can set names of tables, that will be excluded from generation. Default names of tables, that will be excluded: 'users','crud\_route\_groups','migrations'.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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 ~3 days

Recently: every ~46 days

Total

97

Last Release

890d ago

Major Versions

v1.9 → v2.02023-03-17

v2.9.1.5 → v3.02023-05-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/93701684?v=4)[vladmunj](/maintainers/vladmunj)[@vladmunj](https://github.com/vladmunj)

---

Top Contributors

[![vladmunj](https://avatars.githubusercontent.com/u/93701684?v=4)](https://github.com/vladmunj "vladmunj (58 commits)")

### Embed Badge

![Health badge](/badges/bramf-crud-generator/health.svg)

```
[![Health](https://phpackages.com/badges/bramf-crud-generator/health.svg)](https://phpackages.com/packages/bramf-crud-generator)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[azuracast/azuracast

The AzuraCast self-hosted web radio station management suite.

3.9k27.8k](/packages/azuracast-azuracast)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[typo3/cms-redirects

TYPO3 CMS Redirects - Create manual redirects, list existing redirects and automatically createredirects on slug changes.

167.4M80](/packages/typo3-cms-redirects)

PHPackages © 2026

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