lumen-generator

A Lumen Generator You Are Missing

Github星跟蹤圖

Lumen Generator

Total Downloads
Latest Stable Version
Latest Unstable Version
License

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

Installation

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

composer require flipbox/lumen-generator

Configuration

Inside your bootstrap/app.php file, add:

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

Available Command

key:generate      Set the application key

make:command      Create a new Artisan command
make:controller   Create a new controller class
make:event        Create a new event class
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:policy       Create a new policy class
make:provider     Create a new service provider class
make:seeder       Create a new seeder class
make:test         Create a new test class

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 package.

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("<info>Hello the app environment is `{$environment}`</info>");
$output->writeln("<comment>Did something</comment>");
$output->writeln("<error>Did something bad</error>");

主要指標

概覽
名稱與所有者flipboxstudio/lumen-generator
主編程語言PHP
編程語言PHP (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2016-10-20 13:03:12
推送於2024-04-22 12:18:18
最后一次提交2018-01-02 15:50:01
發布數49
最新版本名稱9.3.0 (發布於 )
第一版名稱5.3.0 (發布於 2016-10-20 20:02:15)
用户参与
星數815
關注者數25
派生數124
提交數152
已啟用問題?
問題數60
打開的問題數4
拉請求數57
打開的拉請求數1
關閉的拉請求數9
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?