PHPackages                             manojmbharadwaj/laghu - 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. manojmbharadwaj/laghu

ActiveLibrary

manojmbharadwaj/laghu
=====================

PHP DB Migration Tool

00PHP

Since Nov 16Pushed 6y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

**Project Intro**

Laghu(Small in Kannada) Migration Tool!

---

Intro
-----

[](#intro)

Laghu is small migration tool. The flow is simple. First we will create a migration file. Add SQL to the created file. Run the migration!. When we run the migration, the tool check weather the file is all-ready migrated or not. If it is being migrated it won't run the SQL.
The tool will create Migration directory, migration table(laghu\_migrations) when you run the script. DO NOT CHANGE DIRECTORY NAME and TABLE NAME unlsess you change the laghu.php script as well.
In small projects I found it is easier to have a migration based on raw SQL scripts than using a framework for it.

Config
------

[](#config)

Update config.php with database credentials

Commands
--------

[](#commands)

1. Create Migration:
    php laghu.php create \[file\_suffix\]
    php laghu.php create ct-user\_detail -&gt; this will create the file \[timestamp\]ct-user\_detail in migration directory.
    Naming conventions (optional. Suggested for readiblity):
    ct -&gt; create table
    mt -&gt; modify table
    dt -&gt; SQL contains Data
2. Run migration
    php laghu.php migrate
    The command will run the migration outputs no. of files migrated successfully.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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/c0305f714e6c6f47d406626cb961bf92322dd6032f1c8f7bbe9d3cd46c126edd?d=identicon)[manojmbharadwaj](/maintainers/manojmbharadwaj)

---

Top Contributors

[![manojtm](https://avatars.githubusercontent.com/u/16237595?v=4)](https://github.com/manojtm "manojtm (5 commits)")[![manojmbharadwaj](https://avatars.githubusercontent.com/u/57823029?v=4)](https://github.com/manojmbharadwaj "manojmbharadwaj (1 commits)")

---

Tags

migration-toolphpphp-migration

### Embed Badge

![Health badge](/badges/manojmbharadwaj-laghu/health.svg)

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

PHPackages © 2026

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