2017 © Pedro Peláez
 

library pathinfo

An object to manipulate filesystem paths with a fluid interface

image

timostamm/pathinfo

An object to manipulate filesystem paths with a fluid interface

  • Friday, January 5, 2018
  • by timostamm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 47 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 21 % Grown

The README.md

PHP Pathinfo

build Packagist PHP Version GitHub tag License, (*1)

An object to manipulate filesystem paths with a fluid interface., (*2)

Example


$root = Path::info('/var/wwwroot/index.html'); $root->equals('/foo/../var/root/index.html'); // -> true $root->isIn('/var/wwwroot/'); // -> true $root->isAbsolute(); // -> true $root->dirname(); // -> "/var/wwwroot/" $root->filename(); // -> "index.html" $root->basename(); // -> "index" $root->extension(); // -> "html" Path::info('../log.txt') ->abs($root) ->get(); // -> "/var/log.txt" Path::info('/foo/../var/root/index.html') ->normalize() ->get(); // -> "/var/wwwroot/index.html"

The Versions

05/01 2018

dev-master

9999999-dev

An object to manipulate filesystem paths with a fluid interface

  Sources   Download

AGPL-3.0

The Requires

  • php >=5.6

 

The Development Requires

filesystem path relative path absolute path pathinfo