openwse/flysystem-ipfs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

openwse/flysystem-ipfs

Composer 安装命令:

composer require openwse/flysystem-ipfs

包简介

Flysystem adapter for the IPFS API

README 文档

README

This package contains a Flysystem v2 adapter for IPFS. Under the hood, the IPFS API PHP wrapper is used.

Installation

You can install the package via composer:

composer require openwse/flysystem-ipfs

Usage

use League\Flysystem\Filesystem;
use Ipfs\Ipfs;
use Ipfs\Drivers\HttpClient;
use FlysystemIpfs\IpfsAdapter;

$client = new Ipfs(
    new HttpClient('https://ipfs-host', 5001)
);

$adapter = new IpfsAdapter($client);

$filesystem = new Filesystem($adapter);

Note: that removing a file on IPFS will only affect your node if the file has been pinned.

Lint

Run PHPMD, PHPStan, and PHP-CS-Fixer

composer lint

Testing

It uses tests cases provided by Flysystem but override visibility & last modified settings because it's not supported by IPFS.

composer tests

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 154
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固