PHPackages                             patricmutwiri/archive - 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. [Database &amp; ORM](/categories/database)
4. /
5. patricmutwiri/archive

ActiveLibrary[Database &amp; ORM](/categories/database)

patricmutwiri/archive
=====================

Archive database tables which have grown over time to different tables,time-suffixed, to free commonly-used tables of this dead weight.

00PHPCI failing

Since Apr 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/patricmutwiri/db-archive)[ Packagist](https://packagist.org/packages/patricmutwiri/archive)[ RSS](/packages/patricmutwiri-archive/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Archive
=======

[](#archive)

Archive database tables which have grown over time to different tables,time-suffixed, to free commonly-used tables of this dead weight.

Installation
------------

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require": {
        "patricmutwiri/archive": "dev-master"
    }
}
```

```
$ composer update
```

Usage
-----

[](#usage)

```
$archive = new Patricmutwiri\Archive\Archive;
echo $archive->getDatabases();
// > db1, db2, db3
```

Configs
-------

[](#configs)

```

DATABASES="db1"
TABLES="table1,table2,table3"
ARCHIVE_FROM="2015-12-31"   // Archive from which date
ARCHIVE_TO="2000-01-01"     // If this is empty, we'll archive all data from ARCHIVE_FROM.
DATE_COLUMN="datetimeadded,created_at,date_time_added" // the column to use as key for dates set in ARCHIVE_FROM and ARCHIVE_TO`

```

Licence
-------

[](#licence)

MIT

~[Jibambe](https://patric.xyz "Patrick Mutwiri")

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/46ab28e0a1c918b4e0da0153a4791589c76a14b70a86378bb20d817d906db60a?d=identicon)[patricmutwiri](/maintainers/patricmutwiri)

---

Top Contributors

[![patricmutwiri](https://avatars.githubusercontent.com/u/7590159?v=4)](https://github.com/patricmutwiri "patricmutwiri (11 commits)")

### Embed Badge

![Health badge](/badges/patricmutwiri-archive/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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