Skip to content

Collection of static functions for better work with directory

Notifications You must be signed in to change notification settings

masicek/PhpPath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhpPath

Collection of static functions for better work with directory and file. Short variant of class Path is P. This class is better for often using.

Check Directory or File

use PhpPath\Path;
PhpPath::checkDirectory([PATH]);
PhpPath::checkFile([PATH]);
use PhpPath\P;
P::cd([PATH]);
P::cf([PATH]);

Check if the directory of file exists. If not, then terminated by exception \PhpPath\NotExistsPathException.

Make Path

use PhpPath\Path;
PhpPath::make([PART1], [PART2], ...);
use PhpPath\P;
P::m([PART1], [PART2], ...);

Make path from list of arguments.

Make and Check Directory or File

use PhpPath\Path;
PhpPath::makeAndCheckDirectory([PART1], [PART2], ...);
PhpPath::makeAndCheckFile([PART1], [PART2], ...);
use PhpPath\P;
P::mcd([PART1], [PART2], ...);
P::mcf([PART1], [PART2], ...);

Make path from list of arguments and check if the directory or file exists.

About

Collection of static functions for better work with directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages