siestacat/phpfilemanager
最新稳定版本:1.0.11
Composer 安装命令:
composer require siestacat/phpfilemanager
包简介
File manager library. Manage files by hash
README 文档
README
Install:
composer require siestacat/phpfilemanager
Example:
<?php
use Siestacat\Phpfilemanager\File\FileCommander;
use Siestacat\Phpfilemanager\File\Repository\Adapter\FileSystemAdapter;
$commander = new FileCommander(new FileSystemAdapter('./my_data_dir'));
$file = $commander->add('image.jpg');
$file = $commander->get($file->getHash());
if($commander->exists($file->getHash()))
{
//TO-DO
}
$file = $commander->del($file->getHash());
Tests:
git clone https://github.com/SiestaCat/phpfilemanager.git
cd phpfilemanager
composer install
composer run-script test
```# phpfilemanager-api-client
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-06-11