PHP code example of ozziest / consozzy

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

    

ozziest / consozzy example snippets

 
namespace Publisher\Library;

class Mycommand {
    
    use \Ozziest\Consozzy\Screen;

    public function operation()
    {
        $this->write('This is a command on based the consozzy.');
    }

}
 
class Mycommand {
    
    use \Ozziest\Consozzy\Screen;

    public function operation()
    {
        $command = readline($this->prompt());
    }

}