PHP code example of bluzphp / skeleton

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

    

bluzphp / skeleton example snippets



namespace Application\Users;
class Table extends \Bluz\Db\Table
{
    protected $table = 'users';
    protected $primary = ['id'];
}


namespace Application\Users;
/**
 * @property integer $id
 * @property string $login
 */
class Row extends \Bluz\Db\Row {

}


namespace Application;

/**
 * @privilege ViewProfile
 * @cache     5 minutes
 * @param     integer $id
 * @return    array
 */
return function($id) {
    return [
        'user' => Users\Table::findRow($id)
    ];
};

<h2><?=$user->login
bash
curl -s https://getcomposer.org/installer | php
bash
php composer.phar install