perchten/rmrdir

Recusrive rmdir for PHP

Installs: 26 884

Dependents: 0

Stars: 2

Watchers: 1

Language: PHP

1.0.2 2014-05-14 13:49 UTC

README

Recursive rmdir for PHP

Usage

Installation

Via Composer

Rmrdir is available on Packagist (perchten/rmrdir) and as such is installable via Composer.

Add the following to your composer.json

{
    "require": {s
        "perchten/rmrdir": "1.*"
    }
}
Direct include

Clone or download from GitHub and include directly in your code:

require_once "path/to/rmrdir.php"

Code

rmrdir($dir)

Returns True on Success, False on failure

License

rmrdir is licensed under the MIT License - see the LICENSE file for details

Acknowledgements

This code was initially found on a Stack Overflow thread. I'm just making it available on repos for ease and further development.