PHP code example of wearesho-team / yii2-stateless

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

    

wearesho-team / yii2-stateless example snippets



// your bootstrap.php file

use Wearesho\Yii\Stateless;

Stateless\Configurator::configure(\Yii::$container);


// your main.php file
use Wearesho\Yii\Stateless;

$config = [
    // Your Application configuration 
];

return array_merge(Stateless\Configurator::config(\Yii::$container), $config);