GithubHelp home page GithubHelp logo

niellles / lumen-commands Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 3.0 85 KB

Ports commands from Laravel to Lumen. Mostly make commands at this time.

License: Other

PHP 100.00%
artisan-command artisan lumen-php-framework lumen-framework lumen-micro-framework

lumen-commands's Introduction

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

lumen-commands

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

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.

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

Add the following lines to your app.php:

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

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.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.