PHPackages                             sunnysideup/versions-table-pruner - 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. sunnysideup/versions-table-pruner

ActiveSilverstripe-vendormodule[Database &amp; ORM](/categories/database)

sunnysideup/versions-table-pruner
=================================

prune your Versions table, keeping many, but the further you go back in time, the less versions you keep. You can also keep versions were a specific field was changed (e.g. Content, Price, or Title)

0.1.2(5mo ago)014BSD-3-ClausePHP

Since Dec 8Pushed 1mo agoCompare

[ Source](https://github.com/sunnysideup/silverstripe-versions-table-pruner)[ Packagist](https://packagist.org/packages/sunnysideup/versions-table-pruner)[ RSS](/packages/sunnysideup-versions-table-pruner/feed)WikiDiscussions main Synced 1mo ago

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

Versions Table Pruner
=====================

[](#versions-table-pruner)

[![Build Status](https://camo.githubusercontent.com/a90bc298e984cc75d73d551ba6b4da8e0360550fdb1e65bbbb51b9a09de45f82/68747470733a2f2f7472617669732d63692e6f72672f73756e6e797369646575702f73696c7665727374726970652d76657273696f6e732d7461626c652d7072756e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sunnysideup/silverstripe-versions-table-pruner)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/803fb6902a115838b64c409b84823b116d28c23e974178d5123f0690128509e1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73756e6e797369646575702f73696c7665727374726970652d76657273696f6e732d7461626c652d7072756e65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sunnysideup/silverstripe-versions-table-pruner/?branch=master)[![codecov.io](https://camo.githubusercontent.com/f45f50027ca04a7631f949b70aa0adc117e79c798a6b073dba9815ad8ac6edd7/68747470733a2f2f636f6465636f762e696f2f6769746875622f73756e6e797369646575702f73696c7665727374726970652d76657273696f6e732d7461626c652d7072756e65722f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/sunnysideup/silverstripe-versions-table-pruner?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/accdb5aa0878908ae60acb16c87ed3ba96949f72bc9ad81c30d27c78e2c6436a/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f76657273696f6e732d7461626c652d7072756e65722f76657273696f6e)](https://packagist.org/packages/sunnysideup/versions-table-pruner)[![License](https://camo.githubusercontent.com/74702566ad84da8f912e3c72819c3fbaa96a745cd18c6ce67f1632c3fd101731/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f76657273696f6e732d7461626c652d7072756e65722f6c6963656e7365)](https://packagist.org/packages/sunnysideup/versions-table-pruner)[![Monthly Downloads](https://camo.githubusercontent.com/bac6b5900d61242c7ec65e3f9c89b1720a2e95fec47ebba3a90f35916b375ea5/68747470733a2f2f706f7365722e707567782e6f72672f73756e6e797369646575702f76657273696f6e732d7461626c652d7072756e65722f642f6d6f6e74686c79)](https://packagist.org/packages/sunnysideup/versions-table-pruner)

Documentation
-------------

[](#documentation)

- [Developer Docs](docs/en/INDEX.md)
- [User Guide](docs/en/userguide.md)
- [API Docs](http://docs.ssmods.com/sunnysideup/versions-table-pruner/classes.xhtml)

Requirements
------------

[](#requirements)

See [composer.json](composer.json) for details.

### Suggested modules

[](#suggested-modules)

See [composer.json](composer.json) for details.

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

[](#installation)

```
composer require sunnysideup/versions-table-pruner
```

### Configuration

[](#configuration)

In the `_config` folder you will find the `versions-table-pruner.yml.example`file that shows options for the configuration of this module.

We recommend that you:

1. copy these `versions-table-pruner.yml.example` files into your `app/_config` folder (where available - otherwise search for `private static $` in the module to see what can be configured)
2. remove the .example extension,
3. delete the lines you do not care about, and
4. adjust the configurations that you would like to use.

Contributing
------------

[](#contributing)

We welcome any contributions. See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.

Paid assistance
---------------

[](#paid-assistance)

You can pay us to create an improved / adapted version of this module for your own projects. Please contact us if you like to find out more: [www.sunnysideup.co.nz](https://www.sunnysideup.co.nz). For example, we can write tests for this module.

Author
------

[](#author)

Sunny Side Up Ltd.

Looking for Silverstripe Modules?
---------------------------------

[](#looking-for-silverstripe-modules)

To find other modules, please visit [ssmods.com](https://ssmods.com/).

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance89

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity27

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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

152d ago

Major Versions

0.1.2 → 5.x-dev2025-12-08

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/167154?v=4)[Sunny Side Up](/maintainers/sunnysideup)[@sunnysideup](https://github.com/sunnysideup)

---

Top Contributors

[![sunnysideup](https://avatars.githubusercontent.com/u/167154?v=4)](https://github.com/sunnysideup "sunnysideup (7 commits)")

---

Tags

versionsdbversiondeleteprunetruncatehistoricspring cleandatabase maintenancereduce rowsdatabase size

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sunnysideup-versions-table-pruner/health.svg)

```
[![Health](https://phpackages.com/badges/sunnysideup-versions-table-pruner/health.svg)](https://phpackages.com/packages/sunnysideup-versions-table-pruner)
```

###  Alternatives

[robmorgan/phinx

Phinx makes it ridiculously easy to manage the database migrations for your PHP app.

4.5k46.2M403](/packages/robmorgan-phinx)[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[atlas/query

Object-oriented query builders and performers for MySQL, Postgres, SQLite, and SQLServer.

41249.0k6](/packages/atlas-query)[proai/eloquent-versioning

An extension for the Eloquent ORM to support versioning.

7125.9k](/packages/proai-eloquent-versioning)[smrtr/mysql-version-control

A crude version control system for mysql written in php

221.4k](/packages/smrtr-mysql-version-control)[masom/lhm

Large Hadron Migrator for phinx

309.3k](/packages/masom-lhm)

PHPackages © 2026

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