wearesho-team / yii2-monitoring-fs
Yii2 filesystem monitoring
2.0.0
2024-12-16 15:07 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^6.5.8 || ^7.4.5
- horat1us/yii2-monitoring: ^1.5
- wearesho-team/yii2-filesystem: ^5.1
- yiisoft/yii2: ^2.0.47
Requires (Dev)
- horat1us/yii2-asset-free: ^1.0
- php-mock/php-mock-phpunit: ^2.6.1
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2024-12-16 15:08:10 UTC
README
Installation
composer require wearesho-team/yii2-monitoring-fs:^2.0
Usage
Create instance of Fs class and put in it your filesystem adapter.
Simple usage example in console controller:
<?php use Wearesho\Yii\Monitoring; class MonitoringController extends \yii\console\Controller { public function actionIndex() { /** @var \League\Flysystem\Filesystem $fs */ $control = new Monitoring\Control\Fs([ 'fs' => $fs, 'client' => new \GuzzleHttp\Client(), ]); try { $details = $control->execute(); } catch (\Horat1us\Yii\Monitoring\Exception $exception) { $this->stdout($exception->getMessage()); } } }