PHPackages                             masom/lhm - 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. masom/lhm

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

masom/lhm
=========

Large Hadron Migrator for phinx

0.5.1(9y ago)309.3k6BSD-3-ClausePHPPHP ^5.6.0 || ^7.0.0

Since Apr 28Pushed 1y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (7)Versions (13)Used By (0)

[![Build Status](https://camo.githubusercontent.com/1039cd7c4c13e69172b1e6b433d2165dfe061ad902606e670af8d1fced7c8ecf/68747470733a2f2f7472617669732d63692e6f72672f6d61736f6d2f6c686d5f7068702e737667)](https://travis-ci.org/masom/lhm_php)

Large Hadron Migrator
=====================

[](#large-hadron-migrator)

[Phinx](https://github.com/robmorgan/phinx) meets [LHM](https://github.com/soundcloud/lhm)

This is a PHP port of  . lhm\_php supports primary keys with a name other than `id`.

Version 0.4.0 is considered "production-ready". It is in use at PopKey.co to migrate millions of records.

### TODO

[](#todo)

- \[SqlHelper\] Support column renames
- \[LHM\] Support cleanup
- \[Chunker\] data limits/filtering
- \[Chunker\] throttle
- \[Switchers\] Locked switcher
- add index / remove index

### Usage

[](#usage)

```
