PHPackages                             yaangvu/lumen-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. yaangvu/lumen-generator

ActiveLibrary

yaangvu/lumen-generator
=======================

A Lumen Generator You Are Missing

v2.0.3(3y ago)0501MITPHP

Since Jan 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/YaangVu/lumen-generator)[ Packagist](https://packagist.org/packages/yaangvu/lumen-generator)[ RSS](/packages/yaangvu-lumen-generator/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (1)Dependencies (6)Versions (16)Used By (0)

Lumen Generator
===============

[](#lumen-generator)

[![Total Downloads](https://camo.githubusercontent.com/49c3a0b1db9e36dabd8cb285ba19382de9f88f675d0e73e1aff5d9d4abed5f6c/68747470733a2f2f706f7365722e707567782e6f72672f7961616e6776752f6c756d656e2d67656e657261746f722f642f746f74616c2e737667)](https://packagist.org/packages/yaangvu/lumen-generator)[![Latest Stable Version](https://camo.githubusercontent.com/2c87c1ab9e8a16e4eacaea3fe57e2e4a36bf35b7b3f8eef30b4a8de4cf54080e/68747470733a2f2f706f7365722e707567782e6f72672f7961616e6776752f6c756d656e2d67656e657261746f722f762f737461626c652e737667)](https://packagist.org/packages/yaangvu/lumen-generator)[![Latest Unstable Version](https://camo.githubusercontent.com/d889e5656ad97bfe24caa2baa1158170a5ce306f4974673694e38861b7cc35bd/68747470733a2f2f706f7365722e707567782e6f72672f7961616e6776752f6c756d656e2d67656e657261746f722f762f756e737461626c652e737667)](https://packagist.org/packages/yaangvu/lumen-generator)[![License](https://camo.githubusercontent.com/11adc9d73b25170cc1aec95885b8e061dc2bfd20f32fccce07b173c96405bc52/68747470733a2f2f706f7365722e707567782e6f72672f7961616e6776752f6c756d656e2d67656e657261746f722f6c6963656e73652e737667)](https://packagist.org/packages/yaangvu/lumen-generator)

Do you miss any Laravel code generator on your Lumen project? If yes, then you're in the right place.

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

[](#installation)

To use *some* generators command in Lumen (just like you do in Laravel), you need to add this package:

```
composer require yaangvu/lumen-generator
```

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

[](#configuration)

Inside your `bootstrap/app.php` file, add:

```
$app->register(YaangVu\LumenGeneratorServiceProvider::class);
```

Available Command
-----------------

[](#available-command)

```
key:generate         Set the application key

yaang:cast            Create a new custom Eloquent cast class
yaang:channel         Create a new channel class
yaang:command         Create a new Artisan command
yaang:controller      Create a new controller class
yaang:event           Create a new event class
yaang:exception       Create a new custom exception class
yaang:factory         Create a new model factory
yaang:job             Create a new job class
yaang:listener        Create a new event listener class
yaang:mail            Create a new email class
yaang:middleware      Create a new middleware class
yaang:migration       Create a new migration file
yaang:model           Create a new Eloquent model class
yaang:notification    Create a new notification class
yaang:pipe            Create a new pipe class
yaang:policy          Create a new policy class
yaang:provider        Create a new service provider class
yaang:request         Create a new form request class
yaang:resource        Create a new resource
yaang:rule            Create a new rule
yaang:seeder          Create a new seeder class
yaang:test            Create a new test class

notifications:table  Create a migration for the notifications table

schema:dump          Dump the given database schema

```

Additional Useful Command
-------------------------

[](#additional-useful-command)

```
clear-compiled    Remove the compiled class file
serve             Serve the application on the PHP development server
tinker            Interact with your application
optimize          Optimize the framework for better performance
route:list        Display all registered routes.

```

> **NOTES** `route:list` command has been added via [appzcoder/lumen-route-list](https://github.com/appzcoder/lumen-route-list) package.

Tinker `include` Argument Usage
-------------------------------

[](#tinker-include-argument-usage)

`php artisan tinker path/to/tinker/script.php`

script.php example:

```
$environment = app()->environment();
$output = new Symfony\Component\Console\Output\ConsoleOutput();
$output->writeln("Hello the app environment is `{$environment}`");
$output->writeln("Did something");
$output->writeln("Did something bad");

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Recently: every ~36 days

Total

15

Last Release

1402d ago

Major Versions

v1.0.11 → v2.0.22022-07-10

### Community

Maintainers

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

---

Top Contributors

[![YaangVu](https://avatars.githubusercontent.com/u/14012135?v=4)](https://github.com/YaangVu "YaangVu (15 commits)")

### Embed Badge

![Health badge](/badges/yaangvu-lumen-generator/health.svg)

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

###  Alternatives

[laravel/tinker

Powerful REPL for the Laravel framework.

7.4k423.8M1.8k](/packages/laravel-tinker)[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)

PHPackages © 2026

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