https://github.com/michaelbonds/lumen-make
A package built for lumen that ports most of the make commands from laravel.
https://github.com/michaelbonds/lumen-make
Last synced: 2 months ago
JSON representation
A package built for lumen that ports most of the make commands from laravel.
- Host: GitHub
- URL: https://github.com/michaelbonds/lumen-make
- Owner: michaelbonds
- License: mit
- Created: 2016-01-20T22:44:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-23T20:20:15.000Z (about 10 years ago)
- Last Synced: 2025-09-26T18:13:24.331Z (9 months ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 21
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-lumen - Lumen Make - Ports most of the make commands from Laravel to Lumen. (Packages and Middleware / Videos)
README
# lumen-make
A package built for lumen that ports most of the make commands from laravel.
For lumen v5.1, but will most likely work for 5.2 as well. I haven't tested.
If you have requests, let me know, or do it yourself and make a pull request
## Installation
Just run the following in the root of your project
```shell
> composer require michaelb/lumen-make
```
```php
// In bootstrap/app.php
/*
|--------------------------------------------------------------------------
| Register Service Providers
|--------------------------------------------------------------------------
|
| Here we will register all of the application's service providers which
| are used to bind services into the container. Service providers are
| totally optional, so you are not required to uncomment this line.
|
*/
//$app->register(App\Providers\AppServiceProvider::class);
$app->register(App\Providers\EventServiceProvider::class);
$app->register(MichaelB\LumenMake\LumenMakeServiceProvider::class); // <- Add this
```
```php
// Optionally, if you don't want it to affect load times in production,
// you can load it conditionally
if (env('APP_ENV') != 'production' || env('APP_ENV') == 'local') {
$app->register(MichaelB\LumenMake\LumenMakeServiceProvider::class);
}
```
#### Commands
* `make:job {name}` - Makes a new job class in Jobs/
* `make:console {name}` - Makes a new console command in Console/Commands/
* `make:controller {name}` - Makes a new restful controller in Http/Controllers/
* `make:model {name}` - Makes a new model in /
* `make:middleware {name}` - Makes a new middleware class in Http/Middleware/
* `make:exception {name}` - Makes a new exception class in Exceptions/
* `make:event {name}` - Makes a new event class in Events/