igorkgg/flysystem-akamai-netstorage
Composer 安装命令:
composer require igorkgg/flysystem-akamai-netstorage
包简介
Akamai Netstorage filesystem adapter for Flysystem.
README 文档
README
I created this package because official akamai package is not longer maintained by akamai and there not way to update to Flysystem >= 2.
Requirement
- PHP: ^8.2
- Guzzle: ^7.8.2
- Monolog: ^3.25.1
- Flysystem: ^3.0
Installation
$ composer require "igorkgg/flysystem-akamai-netstorage" -vvv
Usage
use League\Flysystem\Filesystem; use League\Flysystem\AkamaiNetStorage\AkamaiNetStorageAdapter; use League\Flysystem\AkamaiNetStorage\AkamaiNetStorageClientFactory; ... $clientConfig = [ 'signer' => [ 'key' => 'key', 'name' => 'keyName', ], 'edgegrid' => [ 'base_uri' => 'testing.akamaihd.net.example.org', 'timeout' => 300, ], ]; $cpCode = '123456'; $pathPrefix = 'working-dir'; $baseUrl = 'company.akamaihd.net.example.org'; $client = (new AkamaiNetStorageClientFactory($clientConfig))->getClient(); $adapter = new AkamaiNetStorageAdapter( $client, $cpCode, $pathPrefix, $baseUrl ); $filesystem = new Filesystem($adapter); $file = 'example.txt'; $filesystem->write($file, 'test content');
统计信息
- 总下载量: 8.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-29