perchten/rmrdir

Recusrive rmdir for PHP

1.0.3 2019-10-24 11:00 UTC

This package is not auto-updated.

Last update: 2024-12-21 17:22:29 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": {
    	"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.