2017 © Pedro Peláez
 

library path

PHP path handling component for dealing with escaped directory separators

image

phlib/path

PHP path handling component for dealing with escaped directory separators

  • Monday, January 30, 2017
  • by letssurf
  • Repository
  • 4 Watchers
  • 0 Stars
  • 94 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

phlib/path

Code Checks Codecov Latest Stable Version Total Downloads Licence, (*1)

PHP path handling component for dealing with escaped directory separators, (*2)

Install

Via Composer, (*3)

``` bash $ composer require phlib/path, (*4)


## Usage Creation of path instance ``` php $path = \Phlib\Path::fromString('foo/bar/baz'); $info = $path->info(); // should return the same as `pathinfo`

Using path to parse paths with escaped directory separators, (*5)

``` php $path = \Phlib\Path::fromString('foo/bar\/baz'); echo $path->info(\Phlib\Path::INFO_BASENAME); // bar\/baz, (*6)


Build paths with escaped separators ``` php $parts = ['foo', 'bar/baz', 'taz']; $path = new \Phlib\Path($parts); echo $path->toString(); // foo/bar\/baz/taz

License

This package is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version., (*7)

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details., (*8)

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/., (*9)

The Versions

30/01 2017

dev-master

9999999-dev

PHP path handling component for dealing with escaped directory separators

  Sources   Download

LGPL-3.0

The Development Requires

by Martin Price

15/08 2016

1.0.3

1.0.3.0

PHP path handling component for dealing with escaped directory separators

  Sources   Download

The Development Requires

by Martin Price

03/08 2016

1.0.2

1.0.2.0

PHP path handling component for dealing with escaped directory separators

  Sources   Download

The Development Requires

by Martin Price

22/07 2016

1.0.1

1.0.1.0

PHP path handling component for dealing with escaped directory separators

  Sources   Download

The Development Requires

by Martin Price

15/07 2016

1.0.0

1.0.0.0

PHP path handling component for dealing with escaped directory separators

  Sources   Download

The Development Requires

by Martin Price