2017 © Pedro Peláez
 

library path

A PHP library for improving the use of file system paths.

image

phine/path

A PHP library for improving the use of file system paths.

  • Thursday, December 12, 2013
  • by kherge
  • Repository
  • 1 Watchers
  • 19 Stars
  • 173,088 Installations
  • PHP
  • 11 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Path

Build Status Coverage Status Latest Stable Version Total Downloads, (*1)

This library provides a utility methods for file system paths., (*2)

Usage

use Phine\Path\Path;

var_export(Path::canonical('/path/to/../canonicalize'));
// /path/canonicalize

var_export(Path::copy('/path/to/copy', '/path/to/copy/to'));
// 123 (number of files or empty directories copied)

var_export(Path::current());
// /home/user

var_export(Path::isAbsolute('/path/to/../test'));
// true

var_export(Path::isAbsolute('../test'));
// false

var_export(Path::isLocal('path/to/test'));
// true

var_export(Path::isLocal('\\windows\share'));
// false

var_export(Path::isLocal('http://example.com/'));
// false

var_export(Path::join(array('path', 'to', 'test'));
// path/to/test
// path\\to\\test

var_export(Path::remove('/path/to/recursively/remove'));
// 123 (number of paths removed)

var_export(Path::split('/path/to/test'));
// array('path', 'to', 'test')

var_export(Path::split('C:\\path\\to\\test'));
// array('C:', 'path', 'to', 'test')

Requirement

Installation

Via Composer:, (*3)

$ composer require "phine/path=~1.0"

Documentation

You can find the documentation in the docs/ directory., (*4)

License

This library is available under the MIT license., (*5)

The Versions

12/12 2013

dev-master

9999999-dev https://github.com/phine/lib-path

A PHP library for improving the use of file system paths.

  Sources   Download

MIT

The Requires

 

The Development Requires

file system path

16/10 2013

1.1.0

1.1.0.0 https://github.com/phine/lib-path

A PHP library for improving the use of file system paths.

  Sources   Download

MIT

The Requires

 

The Development Requires

file system path

28/08 2013

1.0.0

1.0.0.0 https://github.com/phine/lib-path

A PHP library for improving the use of file system paths.

  Sources   Download

MIT

The Requires

 

The Development Requires

file system path