PHP code example of redberry / laravel-console

1. Go to this page and download the library: Download redberry/laravel-console 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/ */

    

redberry / laravel-console example snippets


use Redberry\LaravelConsole\Facades\Console;

Console::emergency  ('hi there!');
Console::alert      ('hi there!');
Console::critical   ('hi there!');
Console::error      ('hi there!');
Console::warning    ('hi there!');
Console::notice     ('hi there!');
Console::info       ('hi there!');
Console::log        ('hi there!');

console()->emergency  ('hi there!');
console()->alert      ('hi there!');
console()->critical   ('hi there!');
console()->error      ('hi there!');
console()->warning    ('hi there!');
console()->notice     ('hi there!');
console()->info       ('hi there!');
console()->log        ('hi there!');