2017 © Pedro Peláez
 

library fs-paths

Manipulation of the file system paths

image

axy/fs-paths

Manipulation of the file system paths

  • Friday, January 12, 2018
  • by axy
  • Repository
  • 2 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

axy\fs-paths

Manipulation of the file system paths., (*1)

Latest Stable Version Minimum PHP Version Build Status Coverage Status License, (*2)

  • The library does not require any dependencies (except composer packages).
  • Tested on PHP 5.4+, PHP 7, HHVM (on Linux), PHP 5.5 (on Windows).
  • Install: composer require axy/fs-paths.
  • License: MIT.

Documentation

The library provides functions for work with file paths. Normalization, resolving and etc., (*3)

The library works with abstract paths. No requests to the real file system., (*4)

Contents

Examples

use axy\fs\paths\Paths;

/* Static methods */
Paths::normalize('/one/two/../three'); // "/one/three"

/* Adapters */
$posix = Paths::getAdapter('posix');
$win = Paths::getAdapter('windows');

$posix->isAbsolute('c:\config.sys'); // False
$win->isAbsolute('c:\config.sys'); // True

/* Objects */
$url = Paths::getAdapter('url')->create('http://site.loc/news/view.php?id=10');
$url->resolve('../index.html#footer'); // http://site.loc/index.html#footer

$url->params->fragment; // "footer"

The Versions

12/01 2018

dev-master

9999999-dev https://github.com/axypro/fs-paths

Manipulation of the file system paths

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

url windows file system uri path posix

23/11 2015

0.1.1

0.1.1.0 https://github.com/axypro/fs-paths

Manipulation of the file system paths

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

url windows file system uri path posix

30/03 2015

0.1.0

0.1.0.0 https://github.com/axypro/fs-paths

Manipulation of the file system paths

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

url windows file system uri path posix