dev-master
9999999-dev https://github.com/edouardkombo/PhpDirectoryManagerSimple class to manage directories in php using directoryIterator.
MIT
The Requires
- php >=5.3.3
- codeception/codeception *
php directory manager pdm
Simple class to manage directories in php using directoryIterator.
Php Directory Manager helps you manage directories with directoryIterator php native objects. It will help you create, browse, copy and delete directories., (*1)
This class is fully tested with CodeCeption., (*2)
Require PHP version 5.4 or greater., (*3)
Register the bundle in your composer.json, (*4)
{ "require": { "edouardkombo/php-directory-manager": "dev-master" } }
Now, install the vendor, (*5)
php composer.phar install
Don't forget to execute tests, (*6)
codecept run unit
$manager = new DirectoryManager(); $manager->setDirectoryIterator('path/to/directory'); //Move content to another directory $manager->move('path/to/new/directory'); //Move a specific file to another directory $manager->move('path/to/new/directory', 'NameOfFileToMove'); //Delete all directory content $manager->delete('path/to/new/directory'); //Delete specific file $manager->delete('NameOfFileToDelete');
If you want to help me improve this bundle, please make sure it conforms to the PSR coding standard. The easiest way to contribute is to work on a checkout of the repository, or your own fork, rather than an installed version., (*7)
Bug reports and feature requests can be submitted on the Github issues tracker., (*8)
For further informations, contact me directly at edouard.kombo@gmail.com., (*9)
Simple class to manage directories in php using directoryIterator.
MIT
php directory manager pdm