galiais / flysystem-ipfs
Flysystem adapter for the IPFS.
Fund package maintenance!
overtrue
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: 2025-03-22 16:14:57 UTC
README
💾 Flysystem adapter for the IPFS.
Requirement
- PHP >= 8.0.2
Installation
$ composer require "GALIAIS/flysystem-ipfs"
Usage
use League\Flysystem\Filesystem; use GALIAIS\Flysystem\IPFS\IPFSAdapter; $gatewayHost = 'http://localhost:8080'; $apiHost = 'http://localhost:5001'; $adapter = new IPFS($this->gatewayHost, $this->apiHost); $flysystem = new League\Flysystem\Filesystem($adapter);
API
待补充
Adapter extended methods:
待补充
License
MIT