2017 © Pedro Peláez
 

class php-directory-manager

Simple class to manage directories in php using directoryIterator.

image

edouardkombo/php-directory-manager

Simple class to manage directories in php using directoryIterator.

  • Monday, August 25, 2014
  • by edouardkombo
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Php Directory Manager

About

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)

Requirements

Require PHP version 5.4 or greater., (*3)

Installation

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

Documentation

$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');

Contributing

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)

Issues

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)

The Versions

25/08 2014

dev-master

9999999-dev https://github.com/edouardkombo/PhpDirectoryManager

Simple class to manage directories in php using directoryIterator.

  Sources   Download

MIT

The Requires

 

php directory manager pdm