tinect / bunnycdn-sftp-flysystem-adapter
此包已被废弃,不再维护。没有建议的替代包。
BunnyCDN 的 Flysystem 适配器
1.0.2
2022-07-14 12:33 UTC
Requires
- php: >=7.4
- ext-json: *
- league/flysystem: ~1.0
- league/flysystem-sftp: ^1.0
Requires (Dev)
- phpunit/phpunit: ^8.0 | ^9.3
README
⚠️ 请检查 HTTP-flysystem 以获得 10 倍的性能提升: https://github.com/tinect/flysystem-bunnycdn/tree/v1
composer require tinect/flysystem-bunnycdn
⚠️
此适配器支持 BunnyCDN 的 Flysystem 版本 1。
安装
composer require tinect/bunnycdn-sftp-flysystem-adapter:^1.0
使用
use League\Flysystem\Filesystem; use Tinect\Flysystem\BunnyCDN\BunnyCDNAdapter; $client = new BunnyCDNAdapter('storageName', 'api-key-or-ftp-passwort', 'storage.bunnycdn.com', 'optionalSubfolder'); $filesystem = new Filesystem($client);