siestacat/php-hash-path
最新稳定版本:1.0.0
Composer 安装命令:
composer require siestacat/php-hash-path
包简介
Generate relative path from a hash
README 文档
README
Install:
composer require siestacat/php-hash-path
Usage:
use Siestacat\PhpHashPath\GenHashPath;
$hash = '6520c076303312b8ccfd231632a1f752';
$instance = new GenHashPath(2, 2);
echo $instance->getPathFileSystem($hash); //Output: 65/20/6520c076303312b8ccfd231632a1f752
echo $instance->getPathFileSystem($hash, false); //Output: 65/20
$instance = new GenHashPath(4, 3);
echo $instance->getPathFileSystem($hash); //Output: 6520/c076/3033/6520c076303312b8ccfd231632a1f752
echo $instance->getPathFileSystem($hash, false); //Output: 6520/c076/3033
Tests:
git clone https://github.com/SiestaCat/php-hash-path.git
cd php-hash-path
composer install
composer run-script test
统计信息
- 总下载量: 144
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-11-09