2017 © Pedro Peláez
 

library lumen-commands

Adds artisan commands to Lumen 5 that aren't available by default.

image

niellles/lumen-commands

Adds artisan commands to Lumen 5 that aren't available by default.

  • Thursday, June 28, 2018
  • by Niellles
  • Repository
  • 2 Watchers
  • 9 Stars
  • 2,888 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

Lumen version Packagist Version GitHub release (latest by date including pre-releases) GitHub issues Packagist License, (*1)

lumen-commands

This package adds commands that you may know from Laravel, but aren't supported in Lumen by default., (*2)

Installation

It's recommended to only use this package in your development environment. You will not need these commands in production and Laravel left them out for a reason. Add "niellles/lumen-commands": "dev-master" to "require-dev" in your composer.json., (*3)

"require-dev": {
    ...
    "niellles/lumen-commands": "^1.0.0"
  }

Add the following lines to your app.php:, (*4)

if (env('APP_ENV') === 'local') {
    $app->bind(Illuminate\Database\ConnectionResolverInterface::class, Illuminate\Database\ConnectionResolver::class);
    $app->register(Niellles\LumenCommands\LumenCommandsServiceProvider::class);
}

You can now run the commands, like you would under a Laravel installation, from your CLI of choice:
php artisan make:model test, (*5)

Currently supported Commands

Not all of Laravel's commands are included in this package. At this point it's only some make:* commands that I really missed. If you miss a particular command feel free to request it, or better yet: create it yourself (not much more than copy/paste) and do a pull-request., (*6)

  • make:console {name}
  • make:controller {name}
  • make:exception {name}
  • make:job {name}
  • make:middleware {name}
  • make:model {name}
  • make:seed {name}

The Versions

28/06 2018

dev-master

9999999-dev

Adds artisan commands to Lumen 5 that aren't available by default.

  Sources   Download

MIT

The Requires

 

by Niels van der Galiën

lumen commands model artisan lumen 5.2 make lumen 5