apady/bfs-php-sdk
Composer 安装命令:
composer require apady/bfs-php-sdk
包简介
PHP SDK for Baidu File System.
README 文档
README
PHP SDK for Baidu File System
Installation
composer require apady/bfs-php-sdk
Usage
use BFS\FileSystem; use BFS\Exception\IOExceptionInterface; try{ $bfs=new FileSystem('/home/bfs/sandbox/bfs.flag'); $bfs->mkdir("/test"); $bfs->fopen("/test/apady.txt","w"); $bfs->fwrite("hello apady!!\n"); $bfs->fclose(); }catch(IOExceptionInterface $exception){ echo $exception->getMessage(); }
Dependency
BFS SDK now offers C/C++ API, as a result, using BFS-PHP-SDK resquires a BFS PHP EXTENSION as fundamental support. Running the following script can automatically install the php extension.
./autoinstall.sh
安装
composer require apady/bfs-php-sdk
依赖
由于BFS SDK 只提供 C/C++ API,使用BFS-PHP-SDK 需要有 BFS PHP 扩展 作为底层支持,执行以下脚本可自动完成PHP扩展的安装。
./autoinstall.sh
统计信息
- 总下载量: 167
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-01