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

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

websquids/lumen-generator
=========================

A Lumen Generator You Are Missing

00PHP

Since Sep 12Pushed 3y agoCompare

[ Source](https://github.com/websquids/lumen-generator)[ Packagist](https://packagist.org/packages/websquids/lumen-generator)[ RSS](/packages/websquids-lumen-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

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

[](#lumen-generator)

[![Total Downloads](https://camo.githubusercontent.com/006142175fe5a4798a4c27d50cce51279fd8b53cd35bbd42ed3d5386b6aa9dde/68747470733a2f2f706f7365722e707567782e6f72672f7765627371756964732f6c756d656e2d67656e657261746f722f642f746f74616c2e737667)](https://packagist.org/packages/websquids/lumen-generator)[![Latest Stable Version](https://camo.githubusercontent.com/8e4256af6a2c1930084c404b705f31d12fffff1ec6e15a97067aad34b744d8c1/68747470733a2f2f706f7365722e707567782e6f72672f7765627371756964732f6c756d656e2d67656e657261746f722f762f737461626c652e737667)](https://packagist.org/packages/websquids/lumen-generator)[![Latest Unstable Version](https://camo.githubusercontent.com/052851097c7371b423cc36cf2be98c0c38587ab6b8afc2a0a2f4ba9ba9968c7c/68747470733a2f2f706f7365722e707567782e6f72672f7765627371756964732f6c756d656e2d67656e657261746f722f762f756e737461626c652e737667)](https://packagist.org/packages/websquids/lumen-generator)[![License](https://camo.githubusercontent.com/3a7b2bc404dd8ec08b547ed0aa2c244f2ce242cbf4c9d2911afd6a62226f3895/68747470733a2f2f706f7365722e707567782e6f72672f7765627371756964732f6c756d656e2d67656e657261746f722f6c6963656e73652e737667)](https://packagist.org/packages/websquids/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 websquids/lumen-generator
```

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

[](#configuration)

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

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

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

[](#available-command)

```
key:generate         Set the application key

make:cast            Create a new custom Eloquent cast class
make:channel         Create a new channel class
make:command         Create a new Artisan command
make:controller      Create a new controller class
make:event           Create a new event class
make:exception       Create a new custom exception class
make:factory         Create a new model factory
make:job             Create a new job class
make:listener        Create a new event listener class
make:mail            Create a new email class
make:middleware      Create a new middleware class
make:migration       Create a new migration file
make:model           Create a new Eloquent model class
make:notification    Create a new notification class
make:observer        Create a new observer class
make:pipe            Create a new pipe class
make:policy          Create a new policy class
make:provider        Create a new service provider class
make:request         Create a new form request class
make:resource        Create a new resource
make:rule            Create a new rule
make:seeder          Create a new seeder class
make: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

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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/1fe3a60b1e90b630772a915ac9e56cb31e857faef47dd574930123d9f65e3bc6?d=identicon)[elghazaly](/maintainers/elghazaly)

---

Top Contributors

[![joelhy](https://avatars.githubusercontent.com/u/94154?v=4)](https://github.com/joelhy "joelhy (59 commits)")[![krisanalfa](https://avatars.githubusercontent.com/u/3734729?v=4)](https://github.com/krisanalfa "krisanalfa (29 commits)")[![jorgemudry](https://avatars.githubusercontent.com/u/1508989?v=4)](https://github.com/jorgemudry "jorgemudry (21 commits)")[![ssi-anik](https://avatars.githubusercontent.com/u/2676602?v=4)](https://github.com/ssi-anik "ssi-anik (13 commits)")[![aqidd](https://avatars.githubusercontent.com/u/1284186?v=4)](https://github.com/aqidd "aqidd (6 commits)")[![elghazaly](https://avatars.githubusercontent.com/u/8157627?v=4)](https://github.com/elghazaly "elghazaly (3 commits)")[![blestab](https://avatars.githubusercontent.com/u/5468546?v=4)](https://github.com/blestab "blestab (2 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (2 commits)")[![simonhamp](https://avatars.githubusercontent.com/u/31628?v=4)](https://github.com/simonhamp "simonhamp (1 commits)")[![tswestendorp](https://avatars.githubusercontent.com/u/1061961?v=4)](https://github.com/tswestendorp "tswestendorp (1 commits)")[![vkosciuszko](https://avatars.githubusercontent.com/u/27742874?v=4)](https://github.com/vkosciuszko "vkosciuszko (1 commits)")[![webidew](https://avatars.githubusercontent.com/u/56021135?v=4)](https://github.com/webidew "webidew (1 commits)")[![AMS777](https://avatars.githubusercontent.com/u/32177639?v=4)](https://github.com/AMS777 "AMS777 (1 commits)")[![wilbur-yu](https://avatars.githubusercontent.com/u/7148309?v=4)](https://github.com/wilbur-yu "wilbur-yu (1 commits)")[![cochondeguerre](https://avatars.githubusercontent.com/u/272151221?v=4)](https://github.com/cochondeguerre "cochondeguerre (1 commits)")[![elizov](https://avatars.githubusercontent.com/u/3147097?v=4)](https://github.com/elizov "elizov (1 commits)")[![holiq](https://avatars.githubusercontent.com/u/30729921?v=4)](https://github.com/holiq "holiq (1 commits)")[![imikemiller](https://avatars.githubusercontent.com/u/24856374?v=4)](https://github.com/imikemiller "imikemiller (1 commits)")[![mohamedahmed01](https://avatars.githubusercontent.com/u/47615007?v=4)](https://github.com/mohamedahmed01 "mohamedahmed01 (1 commits)")[![mstaack](https://avatars.githubusercontent.com/u/10169509?v=4)](https://github.com/mstaack "mstaack (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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