PHP code example of nikxphreaker / yii2-hiring-backend

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

    

nikxphreaker / yii2-hiring-backend example snippets



return [
    'components' => [
        'db' => [
            'class' => 'yii\db\Connection',
            'dsn' => 'mysql:host=localhost;dbname=your_db_name',
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
        ],
    ],
];


public $tokenExpiration = 60 * 24 * 365; // in seconds