dev-master
9999999-devAn object to manipulate filesystem paths with a fluid interface
AGPL-3.0
The Requires
- php >=5.6
The Development Requires
filesystem path relative path absolute path pathinfo
Wallogit.com
2017 © Pedro Peláez
An object to manipulate filesystem paths with a fluid interface
An object to manipulate filesystem paths with a fluid interface., (*2)
$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"
An object to manipulate filesystem paths with a fluid interface
AGPL-3.0
filesystem path relative path absolute path pathinfo