timostamm/pathinfo
Composer 安装命令:
composer require timostamm/pathinfo
包简介
An object to manipulate filesystem paths with a fluid interface
README 文档
README
An object to manipulate filesystem paths with a fluid interface.
Example
$root = Path::info('/var/wwwroot/index.html'); $root->equals('/foo/../var/root/index.html'); // -> true $root->isIn('/var/wwwroot/'); // -> true $root->isAbsolute(); // -> true $root->dirname(); // -> "/var/wwwroot/" $root->filename(); // -> "index.html" $root->basename(); // -> "index" $root->extension(); // -> "html" Path::info('../log.txt') ->abs($root) ->get(); // -> "/var/log.txt" Path::info('/foo/../var/root/index.html') ->normalize() ->get(); // -> "/var/wwwroot/index.html"
统计信息
- 总下载量: 1.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-30