ddrv / flysystem-macro-sd
flysystem adapter for ddrv/macro-sd
Fund package maintenance!
www.paypal.me/ddrv
Patreon
Requires
- php: ^8.0
- league/flysystem: ^3.2
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
Requires (Dev)
- ddrv/macro-sd: ^0.9.3
- league/flysystem-adapter-test-utilities: ^3.1
- nyholm/psr7: ^1.5
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
- webclient/fake-http-client: ^2.0
README
league/flysystem adapter for ddrv/macro-sd
Install
Install this library, your favorite psr-18 and psr-7 implementation
composer require ddrv/flysystem-macro-sd:^1.0
Usage
<?php /** * @var \Psr\Http\Client\ClientInterface $httpCLient * @var \Psr\Http\Message\RequestFactoryInterface $requestFactory * @var \Psr\Http\Message\StreamFactoryInterface $streamFactory */ $adapter = new \Ddrv\Flysystem\MacroSd\MacroSdAdapter( $httpCLient, $requestFactory, $streamFactory, 'https://your-macro-sd.host', 'macro-sd-user', 'macro-sd-password', ); $filesystem = new \League\Flysystem\Filesystem($adapter);