PHPackages                             perchten/rmrdir - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. perchten/rmrdir

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

perchten/rmrdir
===============

Recusrive rmdir for PHP

1.0.3(6y ago)4101.8k—8%1[1 issues](https://github.com/perchten/php-rmrdir/issues)2MITPHP

Since May 14Pushed 6y ago2 watchersCompare

[ Source](https://github.com/perchten/php-rmrdir)[ Packagist](https://packagist.org/packages/perchten/rmrdir)[ Docs](https://github.com/perchten/php-rmrdir)[ RSS](/packages/perchten-rmrdir/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (2)

php-rmrdir
==========

[](#php-rmrdir)

Recursive rmdir for PHP

Usage
-----

[](#usage)

### Installation

[](#installation)

##### Via Composer

[](#via-composer)

Rmrdir is available on Packagist ([perchten/rmrdir](https://packagist.org/packages/perchten/rmrdir)) and as such is installable via [Composer](https://getcomposer.org/).

Add the following to your `composer.json`

```
{
	"require": {
    	"perchten/rmrdir": "1.*"
    }
}

```

##### Direct include

[](#direct-include)

Clone or download from [GitHub](https://github.com/perchten/php-rmrdir) and include directly in your code:

```
require_once "path/to/rmrdir.php"

```

### Code

[](#code)

```
rmrdir($dir)

```

Returns `True` on Success, `False` on failure

License
-------

[](#license)

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

Acknowledgements
----------------

[](#acknowledgements)

This code was initially found on a [Stack Overflow](http://stackoverflow.com/) thread. I'm just making it available on repos for ease and further development.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~663 days

Total

4

Last Release

2398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b8f0c1a2465186a4ff26665a3b9062d5512e53cda847446e1f6040c624112fe?d=identicon)[perchten](/maintainers/perchten)

---

Top Contributors

[![builtbybrayne](https://avatars.githubusercontent.com/u/2118872?v=4)](https://github.com/builtbybrayne "builtbybrayne (6 commits)")[![mbaynton](https://avatars.githubusercontent.com/u/3026002?v=4)](https://github.com/mbaynton "mbaynton (1 commits)")[![schnittstabil](https://avatars.githubusercontent.com/u/6059032?v=4)](https://github.com/schnittstabil "schnittstabil (1 commits)")

---

Tags

dirrmrecursivermdirrm -r

### Embed Badge

![Health badge](/badges/perchten-rmrdir/health.svg)

```
[![Health](https://phpackages.com/badges/perchten-rmrdir/health.svg)](https://phpackages.com/packages/perchten-rmrdir)
```

###  Alternatives

[mateusjunges/laravel-invite-codes

This package allows you to easily manage invite codes for your Laravel application.

29166.8k](/packages/mateusjunges-laravel-invite-codes)[ilab/namespacer

Tool for re-namespacing composer packages for use in WordPress plugins.

291.1k](/packages/ilab-namespacer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
