1. Go to this page and download the library: Download cyhalothrin/yiiflow 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/ */
cyhalothrin / yiiflow example snippets
class AppBootstrap implements yii\base\BootstrapInterface
{
public function bootstrap($app)
{
\Yii::$container->set(
'Flow\ConfigInterface',
function () {
$config = new Flow\Config();
$config->setTempDir(Yii::getAlias('pathToChunksTempDir'));
return $config;
}
);
}
}