fruit/pathkit
最新稳定版本:1.2.1
Composer 安装命令:
composer require fruit/pathkit
包简介
swiss knife to filesystem path
README 文档
README
This package is part of Fruit Framework.
PathKit is set of tools handling path in filesystem.
Synopsis
// let's say if current working directory is /work/temp $path = new Path('../my.file'); // path is '../my.file' $path->isAbsolute(); // false $path->expand(); // /work/temp/../my.file $path->normalize(); // /work/my.file $path->within(); // false, because /work/my.file does not belong to /work/temp $path->within('/work'); // true $path->relative(); // ../my.file $path->relative('/another/work'); // ../../work/my.file
License
Any version of MIT, GPL or LGPL.
统计信息
- 总下载量: 3.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-10-16