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

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

ivampiresp/lumen-generator
==========================

A Lumen Generator You Are Missing (forked from flipboxstudio/lumen-generator)

010PHP

Since Apr 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/iVampireSP/lumen-generator)[ Packagist](https://packagist.org/packages/ivampiresp/lumen-generator)[ RSS](/packages/ivampiresp-lumen-generator/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

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

[](#lumen-generator)

由于我看原仓库好久没更新，所以自己适配了一下 Lumen 9

原仓库地址：

Origin repo:

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

[](#installation)

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

```
composer require ivampiresp/lumen-generator
```

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

[](#configuration)

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

```
$app->register(iVampireSP\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: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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity25

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/3cffafa62e7deb32c152c9249df68dbc7f02ee44b877c97241f7c4ee24a74157?d=identicon)[iVampireSP](/maintainers/iVampireSP)

---

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)")[![iVampireSP](https://avatars.githubusercontent.com/u/32544186?v=4)](https://github.com/iVampireSP "iVampireSP (17 commits)")[![jorgemudry](https://avatars.githubusercontent.com/u/1508989?v=4)](https://github.com/jorgemudry "jorgemudry (15 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)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (2 commits)")[![blestab](https://avatars.githubusercontent.com/u/5468546?v=4)](https://github.com/blestab "blestab (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)")[![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)")[![RJustice](https://avatars.githubusercontent.com/u/2288594?v=4)](https://github.com/RJustice "RJustice (1 commits)")

### Embed Badge

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

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

###  Alternatives

[byjg/singleton-pattern

A lightweight PHP implementation of the Design Pattern Singleton using trait.

1057.0k2](/packages/byjg-singleton-pattern)[duoshuo/uuid

A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID)

1039.4k](/packages/duoshuo-uuid)

PHPackages © 2026

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