PHPackages                             shahid/sp-migrations-generator - 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. shahid/sp-migrations-generator

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

shahid/sp-migrations-generator
==============================

This package generates migrations for sps and functions from your env db through artisan commands.

1.3(6y ago)14.1kMITPHP

Since Sep 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/shahidullahkhankhattak/sp-migrations-generator)[ Packagist](https://packagist.org/packages/shahid/sp-migrations-generator)[ RSS](/packages/shahid-sp-migrations-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Sps &amp; Functions migrations generator for laravel
====================================================

[](#sps--functions-migrations-generator-for-laravel)

[![N|Solid](https://camo.githubusercontent.com/7095ebcb024d551c80a6b90dcb055d72a55a3a889ed081d0d3faedc8caf4597e/68747470733a2f2f736861686964756c6c61686b68616e2e636f6d2f696d616765732f706f77657265642e706e67)](https://shahidullahkhan.com)

[![Build Status](https://camo.githubusercontent.com/e9bee82bc24671ccbdb4f5a724314751902e587d5e1a26546955301ed81770b4/68747470733a2f2f736861686964756c6c61686b68616e2e636f6d2f696d616765732f70617373696e672e737667)](https://shahidullahkhan.com)

##### This is a laravel package that generates migrations for sps and functions from your database through artisan commands.

[](#this-is-a-laravel-package-that-generates-migrations-for-sps-and-functions-from-your-database-through-artisan-commands)

- Generates migrations for SP
- Generates migrations for Functions

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

[](#installation)

This migration generator requires [Laravel](https://laravel.com/) to work.

require this package through composer using following command

```
$ composer require shahid/sp-migrations-generator
```

Next, add the following service providers:

```
Shahid\SpMigrationsGenerator\SpMigrationsGeneratorServiceProvider::class,

```

Usage
-----

[](#usage)

Run below command to generate migrations.

```
$ php artisan spmigration:generate
```

Or Run below command to ignore some table migrations.

```
$ php artisan spmigration:inserttables
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

2471d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5314184?v=4)[shahidullahkhan](/maintainers/shahidullahkhan)[@shahidullahKhan](https://github.com/shahidullahKhan)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/shahid-sp-migrations-generator/health.svg)

```
[![Health](https://phpackages.com/badges/shahid-sp-migrations-generator/health.svg)](https://phpackages.com/packages/shahid-sp-migrations-generator)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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