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

ActiveLibrary

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

This is my package MigrationToSql

0.2.0(4y ago)514MITPHPPHP ^8.0

Since Aug 8Pushed 4y 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 today

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 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1735d 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

12.9k89.8M1.0k](/packages/spatie-laravel-permission)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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