PHPackages                             royallthefourth/psh-innodb-shrink - 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. royallthefourth/psh-innodb-shrink

ActiveProject

royallthefourth/psh-innodb-shrink
=================================

Provides a cron to shrink InnoDB tables with lots of free space

v1.0.1(5y ago)039MITPHPPHP ^7.2

Since Sep 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/royallthefourth/psh-innodb-shrink)[ Packagist](https://packagist.org/packages/royallthefourth/psh-innodb-shrink)[ RSS](/packages/royallthefourth-psh-innodb-shrink/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

InnoDB Shrink
=============

[](#innodb-shrink)

This package provides a command-line tool that can be used to shrink InnoDB tables in a PHP application running on Platform.sh.

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

[](#installation)

`composer require royallthefourth/psh-innodb-shrink`

Usage
-----

[](#usage)

Add a cron to your `.platform.app.yaml` that invokes the program with a ratio of free space as its argument.

For example, this will only run on tables that are at least 75% empty:

```
vendor/bin/shrink 0.75

```

Tests
-----

[](#tests)

This package has tests. Use this command to run the them:

```
vendor/bin/phpunit tests

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~3 days

Total

2

Last Release

2063d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1503994?v=4)[Royall Spence](/maintainers/royallthefourth)[@royallthefourth](https://github.com/royallthefourth)

---

Top Contributors

[![royallthefourth](https://avatars.githubusercontent.com/u/1503994?v=4)](https://github.com/royallthefourth "royallthefourth (20 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/royallthefourth-psh-innodb-shrink/health.svg)

```
[![Health](https://phpackages.com/badges/royallthefourth-psh-innodb-shrink/health.svg)](https://phpackages.com/packages/royallthefourth-psh-innodb-shrink)
```

PHPackages © 2026

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