New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ffogarasi/nice-artisan

Web interface for Laravel Artisan
146 4
Install
composer require ffogarasi/nice-artisan:dev-master
PHP:>=5.5.9
License:MIT
Last Updated:Apr 4, 2016
Links: GitHub  ·  Packagist
Maintainer: ffogarasi

Nice Artisan

This package is to add a web interface for Laravel 5 Artisan.

For Laravel 5.2 get branch laravel_5_2 !

For Laravel 5.1 get branch laravel_5_1 !

It's still a work in progress.

Installation

Add Nice Artisan to your composer.json file :

    composer require ffogarasi/nice-artisan

The next required step is to add the service provider to config/app.php :

    FFogarasi\NiceArtisan\NiceArtisanServiceProvider::class,

And copy the package config to your local config with the publish command:

    php artisan vendor:publish

In the config/nice-artisan.php generate a long enough random token. This is used as an API token if you want to call artisan commands using curl for example.

You can change options and commands in config/commands.php. The menu is dynamically created with this config.

Now it must work with this url :

    .../niceartisan

Middleware

If you want to use this package on a production application you must protect the urls with a middleware for your security ! For this you can change checkUser function in the provided middleware.

And register it in Kernel with nice_artisan name :

protected $routeMiddleware = [
    ....
    'nice_artisan' => \App\Http\Middleware\NiceArtisanMiddleware::class,
];

If you have CSRF verification enabled then create your custom VerifyCsrfToken class as it is described here: https://laravel.com/docs/master/routing section Excluding URIs From CSRF Protection and add the exception for the rest_item route

Screenshots

nice-artisan1 nice-artisan2 nice-artisan3

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

655,942,320 9,702
laravel/framework

The Laravel Framework.

617,629,957 34,997
laravel/tinker

Powerful REPL for the Laravel framework.

524,145,802 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

442,489,569 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

412,228,818 4,664