PHPackages                             biliboobrian/lumen-angular-code-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. biliboobrian/lumen-angular-code-generator

ActiveLibrary

biliboobrian/lumen-angular-code-generator
=========================================

Model, controller, provider and service generator for Lumen 5+ and Angular 6+ from DB schema

1.0.37(4y ago)66693MITPHP

Since Jul 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/biliboobrian/lumen-angular-code-generator)[ Packagist](https://packagist.org/packages/biliboobrian/lumen-angular-code-generator)[ RSS](/packages/biliboobrian-lumen-angular-code-generator/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (3)Versions (36)Used By (0)

lumen-angular-code-generator
============================

[](#lumen-angular-code-generator)

!! WORK IN PROGRESS &gt; ANGULAR GENERATOR !!

Model, controller provider and service generator for lumen 5+ and angular 6+ from DB schema.

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

[](#installation)

Use composer to install it in your lumen project.

`composer require biliboobrian/lumen-angular-code-generator`

Modify your bootstrap/app.php providers to add generators to Artisan.

```
$app->register(biliboobrian\lumenAngularCodeGenerator\Provider\GeneratorServiceProvider::class);
```

Usage
-----

[](#usage)

### Scaffolding from DB

[](#scaffolding-from-db)

You need a database connection setup in your project.

Build CRUD models and controllers with various commands (List of available commands will be updated with development progress):

```
  bilibo:lumen:ctrl      Generate CRUD controller for a table name.
  bilibo:lumen:ctrls     Generate CRUD controllers for all tables.
  bilibo:lumen:model     Generate Eloquent model according to table passed in argument.
  bilibo:lumen:models    Generate Eloquent models for all tables.
```

Default configuration is the following ( you can override them with -c option in command line to provide another config.php file):

```
    'lumen_model_namespace'       	=> 'App\Models',
    'lumen_ctrl_namespace'       	=> 'App\Http\Controllers',
    'base_class_lumen_model_name' 	=> \biliboobrian\lumenAngularCodeGenerator\Model\MicroServiceExtendModel::class,
    'base_class_lumen_ctrl_name' 	=> \biliboobrian\lumenAngularCodeGenerator\Controller\CrudExtendController::class,
    'lumen_model_output_path'     	=> app_path() . '/Models',
    'lumen_ctrl_output_path'      	=> app_path() . '/Http/Controllers',
    'no_timestamps'   				=> null,
    'date_format'     				=> null,
	'connection'      				=> null,
	'add_route'      				=> null,
	'add_cache'      				=> null,
```

Use command help for more infos

```
$ php artisan bilibo:lumen:ctrl -h
```

Generation of controllers and models extend lushdigital/microservice-crud.

### Usage of Generated Controllers and models

[](#usage-of-generated-controllers-and-models)

By default all controllers provide a set of applicable routes what you can add to your routes/web.php:

```
//for full tables retrieve
$router->get(   '/model',                 'ModelController@index');

//for paginated tables retrieve
$router->get(   '/model',                 'ModelController@get');

$router->get(   '/model/{id}/{relation}', 'ModelController@getRelationList');
$router->get(   '/model/{id}',            'ModelController@show');
$router->post(  '/model',                 'ModelController@store');
$router->put(   '/model/{id}',            'ModelController@update');
$router->delete('/model/{id}',            'ModelController@destroy');
```

You can add all routes to your web.php using -a option in the bilibo:lumen:ctrls command.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~32 days

Recently: every ~74 days

Total

35

Last Release

1748d ago

### Community

Maintainers

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

---

Top Contributors

[![biliboobrian](https://avatars.githubusercontent.com/u/3063613?v=4)](https://github.com/biliboobrian "biliboobrian (12 commits)")[![pierre-hanauer-its4u](https://avatars.githubusercontent.com/u/62929845?v=4)](https://github.com/pierre-hanauer-its4u "pierre-hanauer-its4u (3 commits)")

---

Tags

scaffoldingcode generatorlumenmodelserviceprovidercontrollerangular

### Embed Badge

![Health badge](/badges/biliboobrian-lumen-angular-code-generator/health.svg)

```
[![Health](https://phpackages.com/badges/biliboobrian-lumen-angular-code-generator/health.svg)](https://phpackages.com/packages/biliboobrian-lumen-angular-code-generator)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[league/container

A fast and intuitive dependency injection container.

86387.8M343](/packages/league-container)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[shiftonelabs/laravel-cascade-deletes

Adds application level cascading deletes to Eloquent Models.

163632.1k2](/packages/shiftonelabs-laravel-cascade-deletes)[jdesrosiers/silex-cors-provider

A silex service provider that adds CORS services to silex

83892.3k10](/packages/jdesrosiers-silex-cors-provider)[mmghv/lumen-route-binding

Route model binding for Lumen

50241.9k](/packages/mmghv-lumen-route-binding)

PHPackages © 2026

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