Skip to content

rulatir/pathkit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PathKit

This package is part of Fruit Framework.

PathKit is set of tools handling path in filesystem.

Build Status

Synopsis

// let's say if current working directory is /work/temp
$path = new Path('../my.file'); // path is '../my.file'
$path->isAbsolute(); // false
$path->expand(); // /work/temp/../my.file
$path->normalize(); // /work/my.file
$path->within(); // false, because /work/my.file does not belong to /work/temp
$path->within('/work'); // true
$path->relative(); // ../my.file
$path->relative('/another/work'); // ../../work/my.file

License

Any version of MIT, GPL or LGPL.

About

Set of tools to play with path in filesystem.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 94.6%
  • Makefile 5.4%