fruit / pathkit
There is no license information available for the latest version (1.2.1) of this package.
swiss knife to filesystem path
1.2.1
2018-12-10 07:20 UTC
Requires
None
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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.