PHP code example of puko / console

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

    

puko / console example snippets


$db['<schema>'] = [
    'dbType' => 'mysql',            // mysql | oracle | sqlsrv | mongo
    'host'   => 'localhost',
    'user'   => 'root',
    'pass'   => '',
    'dbName' => 'dbname',
    'port'   => '3306',
    'driver' => 'pdo',              // odbc | sqlsrv for SQL Server
    'ignoreTableWithPrefix' => '_',
    'hideColumns' => ['created', 'modified', 'cuid', 'muid', 'dflag', 'password'],
];
bash
php puko <command> [directive] [action] [attribute]
bash
php puko refresh db <schema>
bash
php puko language <directory path>
bash
php puko serve [port]
bash
php puko cli <router path>
bash
php puko tests <directive>