2017 © Pedro Peláez
 

library path

A class made in PHP7 inspired by nodes path module, for modify and create path strings, also read folder/file information.

image

labcake/path

A class made in PHP7 inspired by nodes path module, for modify and create path strings, also read folder/file information.

  • Monday, May 28, 2018
  • by LabCake
  • Repository
  • 0 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 80 % Grown

The README.md

Path

A class made in PHP inspired by nodes path module, for modify and create path strings, also read folder/file information, (*1)

Resolve path, (*2)

// This will return a path to /hello/world
Path::resolve("hello", "world");

Basename, (*3)

Path::basename("test.php");

Dirname, (*4)

Path::dirname("/var/www/test.php");

Extension name, (*5)

Path::extname("test.php");

Parse, (*6)

Path::parse("test.php");

Exists, (*7)

Path::exists("test.php");

Create directory, (*8)

// This will create all the folders needed untill the last one is created
Path::mkdir("/this/is/a/path/to/create");

Remove directory, (*9)

// This will remove all the subfolders and files in the selected path recursively
Path::rmdir("/remove/this/folder");

Documentation not yet complete, (*10)

The Versions

28/05 2018

dev-master

9999999-dev

A class made in PHP7 inspired by nodes path module, for modify and create path strings, also read folder/file information.

  Sources   Download

Apache-2.0

The Requires