zver/directory-walker

There is no license information available for the latest version (1.0.8) of this package.

this is universal package template for development and testing

1.0.8 2019-06-27 13:20 UTC

This package is auto-updated.

Last update: 2024-10-23 05:19:30 UTC


README

Build Status

Directory walker

This package helps you walk paths from current directory

Example of usage:

curent dir is /project

<?php
$path=DirectoryWalker::fromCurrent()
                     ->enter('tests')          //  /project/tests/
                     ->enter('unit/subunit\\') //  /project/tests/unit/subunit/
                     ->up()                    //  /project/tests/unit/
                     ->enter('sub\sub/unit/')  //  /project/tests/unit/sub/sub/unit/
                     ->up(2)                   //  /project/tests/unit/sub/
                     ->upUntil('tests')        //  /project/tests/
                     ->get();
?>