PHP code example of jasny / consolekit-extension

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

    

jasny / consolekit-extension example snippets

 
$rows = array(
    array('Name', 'Occupation', 'Country'),
    array('John Doe', 'Plummer', 'Netherlands'),
    array('Joe Fisher', 'Cook', 'France'),
    array('Jack Black', 'Actor', 'USA')
);
    
$table = new Jasny\ConsoleKit\Widgets\Table($textwriter, $rows, array('headers'=>true));
$table->write();