PHP code example of wearesho-team / yii2-filesystem
1. Go to this page and download the library: Download wearesho-team/yii2-filesystem 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-filesystem example snippets
// common/config/main.php or another configuration file
use Wearesho\Yii\Filesystem;
return [
'components' => [
// ...
],
'bootstrap' => [
'class' => Filesystem\Bootstrap::class,
'container' => true, // if you need to configure global DI container (\Yii::$container)
'id' => 'fs', // \Yii::$app component to be configured. Filesystem will be available using \Yii::$app->fs
],
];