Skip to content

laradic/console

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages