PHPackages                             cfxmarkets/repo-tools - 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. cfxmarkets/repo-tools

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

cfxmarkets/repo-tools
=====================

A small set of tools to help manage repositories, such as database migration tools, etc. NOTE: Because these tools encompass a wide range of uses, we've decided not to declare their dependencies explicitly. Rather, these dependencies are \_suggested,\_ such that people who need them may easily find and download them, while those who don't won't need to incorporate excess code.

v1.0.0(7y ago)0367Shell

Since Jul 18Pushed 7y ago3 watchersCompare

[ Source](https://github.com/cfxmarkets/repo-tools)[ Packagist](https://packagist.org/packages/cfxmarkets/repo-tools)[ RSS](/packages/cfxmarkets-repo-tools/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

Repo Tools
==========

[](#repo-tools)

This repo comprises a small collection of bash scripts that may be useful for repo maintenance tasks.

**Important:** Some of these tools utilize dependencies that are not officially declared. The point of them is simply to be able to share them among repos with fairly formulaic structures. Often, these structures will be very CFX-specific. Feel free to fork....

Usage
-----

[](#usage)

### `shmig-show-migrations-for-ref`

[](#shmig-show-migrations-for-ref)

```
NAME
        shmig-show-migrations-for-ref - use shmig to list migrations for a particular branch of a git repository

SYNOPSIS
        shmig-show-migrations-for-ref [options] [ref]

DESCRIPTION
        Checks out [ref] into a temp directory and uses shmig to get a full list of available migrations.
        The intended use for this in conjunction with `migrate-to-common-ancestor`.

OPTIONS
        --repo-root|-r
            Optional. The repo in which to operate this command. If not supplied, the command moves
            up from the current working directory trying to find a .git directory.

        --tmp-dir|-t
            Optional. The path to the directory to use as a temp directory. If none provided, a random
            temp directory will be created under /tmp/.

        --no-cleanup|-n
            Optional. Don't delete the temporary directory.
```

### `shmig-migrate-to-common-ancestor`

[](#shmig-migrate-to-common-ancestor)

```
NAME
        shmig-migrate-to-common-ancestor - use shmig to migrate the database of a repository to the common ancestor of two refs

SYNOPSIS
        shmig-migrate-to-common-ancestor [options] [from_ref] [to_ref]

DESCRIPTION
        Finds the common database migration ancestor between [from_ref] and [to_ref] and uses shmig
        to migrate the database to that ancestor

OPTIONS
        --repo-root|-r
            Optional. The repo in which to operate this command. If not supplied, the command moves
            up from the current working directory trying to find a .git directory.
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

2650d ago

Major Versions

v0.9.1 → v1.0.02019-03-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/b76588c1d06ed54f5f5fe06e466d044b0527eb6e1b68a8e3dccd13e447fa43eb?d=identicon)[kael-shipman](/maintainers/kael-shipman)

---

Top Contributors

[![kael-shipman](https://avatars.githubusercontent.com/u/3475586?v=4)](https://github.com/kael-shipman "kael-shipman (1 commits)")

### Embed Badge

![Health badge](/badges/cfxmarkets-repo-tools/health.svg)

```
[![Health](https://phpackages.com/badges/cfxmarkets-repo-tools/health.svg)](https://phpackages.com/packages/cfxmarkets-repo-tools)
```

###  Alternatives

[jfsimon/gmap-bundle

Symfony GMap bundle

1952.7k](/packages/jfsimon-gmap-bundle)

PHPackages © 2026

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