galiais / flysystem-ipfs
Flysystem适配器用于IPFS。
dev-main
2023-11-22 13:00 UTC
Requires
- ext-curl: *
- ext-sodium: *
- chenjia404/php-ipfs-api: dev-master
- guzzlehttp/guzzle: ^7.8.0
- league/flysystem: ^3.0
- openwse/ipfs-api: dev-main
- tuupola/base32: 2.x-dev
- tuupola/base58: 2.x-dev
- tuupola/base62: 3.x-dev
- tuupola/base85: 2.x-dev
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.0
- mockery/mockery: ^1.4.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-09-22 14:46:18 UTC
README
💾 Flysystem适配器用于IPFS。
要求
- PHP >= 8.0.2
安装
$ composer require "GALIAIS/flysystem-ipfs"
用法
use League\Flysystem\Filesystem; use GALIAIS\Flysystem\IPFS\IPFSAdapter; $gatewayHost = 'https://:8080'; $apiHost = 'https://:5001'; $adapter = new IPFS($this->gatewayHost, $this->apiHost); $flysystem = new League\Flysystem\Filesystem($adapter);
API
待补充
适配器扩展方法
待补充
许可
MIT