diff options
Diffstat (limited to 'vendor/plasmaconduit/path/README.md')
-rw-r--r-- | vendor/plasmaconduit/path/README.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/plasmaconduit/path/README.md b/vendor/plasmaconduit/path/README.md new file mode 100644 index 000000000..cc04b5aa7 --- /dev/null +++ b/vendor/plasmaconduit/path/README.md @@ -0,0 +1,22 @@ +Path +==== + +[![Build Status](https://travis-ci.org/JosephMoniz/php-path.png?branch=master)](undefined) + +Simple and care free file path concatenation and simplification. + +```php +<?php +use PlasmaConduit\Path; + +Path::join("wat", "lol"); // -> wat/lol +Path::join("/a", "///b"); // -> /a/b +Path::join("/a", "b", "c", "..", "d"); // -> /a/b/d + +Path::normalize("/a/b/c/../d"); // -> /a/b/d +Path::normalize("/a/b/c/../../d"); // -> /a/d +Path::normalize("/b/wat//"); // -> /b/wat/ +Path::normalize("/b///wat/"); // -> /b/wat/ +Path::normalize(""); // -> . +Path::normalize("/"); // -> / +```
\ No newline at end of file |