fruit / pathkit
该软件包最新版本(1.2.1)没有提供许可证信息。
文件系统路径的瑞士军刀
1.2.1
2018-12-10 07:20 UTC
Requires (Dev)
README
此软件包是 Fruit 框架的一部分。
PathKit 是一组处理文件系统路径的工具。
摘要
// 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
许可证
MIT、GPL 或 LGPL 的任何版本。