PHPackages                             patternseek/recycle - 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. patternseek/recycle

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

patternseek/recycle
===================

A utility library implementing a recycle/trash bin for scripts to more safely recursively delete directories.

0.1.4(1y ago)1228MITPHP

Since Jun 12Pushed 1y ago2 watchersCompare

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

READMEChangelogDependencies (2)Versions (8)Used By (0)

Recycle
=======

[](#recycle)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/17d49772fbb4de7f886f0b898898b4e4bd476bca7f9195fc309fbe3882e5e6a5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7061747465726e7365656b2f72656379636c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/patternseek/recycle/?branch=master) [![SensioLabsInsight](https://camo.githubusercontent.com/b4300a71c2c79a6489921e40b39e371a84c9b76cb32aae6088cd42628a2aa01f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65313235633437352d303232312d343139642d393061372d3766366536646232656434382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/e125c475-0221-419d-90a7-7f6e6db2ed48)

A utility library implementing a recycle/trash bin for scripts to recursively 'delete' directories more safely.

Usage example
-------------

[](#usage-example)

```
// Recycle will attempt to create the directory, but not its parent.
$r = new Recycle( "/tmp/my_apps_recycle_bin/" );

// moveToBin tells you the new filepath/name for the moved
// file or directory. This is mostly useful for testing.
$movedTo = $r->moveToBin("/var/tmp/somefile_or_dir");

// Remove entries before last midnight
$r->emptyBin( $daysToKeep = 1 );
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~862 days

Total

5

Last Release

542d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f86c4aaac168cb97684da01dc1f101a897a11e62d74479bbced3a19d0c4782d?d=identicon)[patternseek](/maintainers/patternseek)

---

Top Contributors

[![patternseek](https://avatars.githubusercontent.com/u/7610379?v=4)](https://github.com/patternseek "patternseek (16 commits)")

---

Tags

library

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/patternseek-recycle/health.svg)

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

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

70036.3M116](/packages/league-iso3166)[league/statsd

A simple library for working with StatsD in PHP.

3514.3M12](/packages/league-statsd)[payum/iso4217

ISO 4217 PHP Library

16312.1M5](/packages/payum-iso4217)[lambdish/phunctional

λ PHP functional library

3612.0M23](/packages/lambdish-phunctional)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)

PHPackages © 2026

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