diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-10 17:00:45 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-08-10 17:09:49 +0200 |
commit | 25882999fb6ba3c16451a0d466144ccd24684ffc (patch) | |
tree | fa02a95ec8b4ed1bfcc742ebc7e318adc18119ac /vendor/plasmaconduit/path/README.md | |
parent | 6a489df47a1c8fa351e9b43924fc28c3986583bb (diff) |
make error output prettier
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 |