1. Go to this page and download the library: Download corex/lconsole library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
corex / lconsole example snippets
if ($this->app->environment() == 'local') {
$this->app->register(\CoRex\Laravel\Console\ConsoleServiceProvider::class);
}
$artisan = new \CoRex\Laravel\Console\Artisan(__DIR__);
// Set name on artisan.
//$artisan->setName('name');
// Set version on artisan.
//$artisan->setVersion('x.y.z');
// Add single command.
//$artisan->addCommand(MyCommand::class);
// Add multiple commands on specified path.
//$artisan->addCommandsOnPath(path-to-commands, true, '');
$artisan->execute();
$artisan = new \CoRex\Laravel\Console\Artisan(__DIR__);
// Set name on artisan.
$artisan->setName('Test');
// Set version on artisan.
$artisan->setVersion('1.0.0');
// Add single command.
//$artisan->addCommand(MyCommand::class);
// Add multiple commands on specified path.
$artisan->addCommandsOnPath(__DIR__ . '/app/Console/Commands, true, '');
$artisan->execute();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.