PHPackages                             bcleverly/migrationtosql - 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. bcleverly/migrationtosql

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

bcleverly/migrationtosql
========================

This is my package MigrationToSql

0.2.0(5y ago)514MITPHPPHP ^8.0

Since Aug 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/BCleverly/MigrationToSql)[ Packagist](https://packagist.org/packages/bcleverly/migrationtosql)[ Docs](https://github.com/BCleverly/MigrationToSql)[ RSS](/packages/bcleverly-migrationtosql/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (9)Versions (3)Used By (0)

This is my package MigrationToSql
=================================

[](#this-is-my-package-migrationtosql)

[![Latest Version on Packagist](https://camo.githubusercontent.com/de27f05da2c9fdae83b680173c7ac7133dbc53cc7d81a25437b2ffb2cf30ad18/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62636c657665726c792f6d6967726174696f6e746f73716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bcleverly/migrationtosql)[![Total Downloads](https://camo.githubusercontent.com/102e71d2cb8b7917461927bb8149bdb2b9c55c8c3000ffecc47c882b693c0a61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62636c657665726c792f6d6967726174696f6e746f73716c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bcleverly/migrationtosql)

---

To install:

```
composer require bcleverly/migrationtosql --dev
```

---

This repo is here to help you extract the SQL queries from your registered migration files. Running the below command will output each migration file in the order they're registered.

```
php artisan migrate:to-sql
```

Below is an example of the output of the CreateUsersTable

```
-- CreateUsersTable
-- \laravelapp\database\migrations/2014_10_12_000000_create_users_table.php
create table `users` (
  `id` bigint unsigned not null auto_increment primary key,
  `name` varchar(255) not null,
  `email` varchar(255) not null,
  `email_verified_at` timestamp null,
  `password` varchar(255) not null,
  `remember_token` varchar(100) null,
  `created_at` timestamp null,
  `updated_at` timestamp null
) default character set utf8mb4 collate 'utf8mb4_unicode_ci'
```

Testing
-------

[](#testing)

TODO

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1835d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/628574?v=4)[Ben](/maintainers/BCleverly)[@BCleverly](https://github.com/BCleverly)

---

Top Contributors

[![BCleverly](https://avatars.githubusercontent.com/u/628574?v=4)](https://github.com/BCleverly "BCleverly (8 commits)")

---

Tags

laravelmigrationtosqlBCleverly

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bcleverly-migrationtosql/health.svg)

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

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

13.0k107.5M1.6k](/packages/spatie-laravel-permission)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M188](/packages/spatie-laravel-health)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3915.5k](/packages/rawilk-profile-filament-plugin)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1614.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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