laradic/console

Extra console application and/or command features

1.0.0 2016-08-14 00:17 UTC

This package is not auto-updated.

Last update: 2024-11-18 14:11:45 UTC


README

Laradic Console

Source License Framework

This package extends the default Laravel Console and adds several new features.

The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.

Installation

composer require "laradic/console:~1.0"

Quick Overview

Full documenation @ la.radic.nl

There are 2 ways of using this package.

Command only

Command only means you only use the Laradic\Console\Command class, which is an extension of Illuminate\Console\Command with several improvements and additional features. It is possible to use this class to extend your own Commands from without needing to register the service provider or extend the Kernel.

Go to the Command documentation

Full features

Beside using the Laradic\Console\Command for your commands, to enable full features it is required to extend your Console Kernel from the Laradic\Console\Kernel and register the Laradic\Console\ConsoleServiceProvider.

In most cases this means editing the app/Console/Kernel.php:

namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
// change
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
// to
use Laradic\Console\Kernel as ConsoleKernel; 

class Kernel extends ConsoleKernel {}

And registering the Laradic\Console\ConsoleServiceProvider inside config/app.php