PHPackages                             richan-fongdasen/database-converter-laravel - 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. richan-fongdasen/database-converter-laravel

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

richan-fongdasen/database-converter-laravel
===========================================

A database converter tool for Laravel Applications

0.1.0(2y ago)2332[4 PRs](https://github.com/richan-fongdasen/database-converter-laravel/pulls)MITPHPPHP ^8.2CI passing

Since May 4Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/richan-fongdasen/database-converter-laravel)[ Packagist](https://packagist.org/packages/richan-fongdasen/database-converter-laravel)[ Docs](https://github.com/richan-fongdasen/database-converter-laravel)[ GitHub Sponsors](https://github.com/richan-fongdasen)[ RSS](/packages/richan-fongdasen-database-converter-laravel/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (16)Versions (6)Used By (0)

Database Converter for Laravel Applications
===========================================

[](#database-converter-for-laravel-applications)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7bf356c78652569ddb5f752861df93712421a13d1421a1b02189b7d9b098d66e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696368616e2d666f6e67646173656e2f64617461626173652d636f6e7665727465722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/richan-fongdasen/database-converter-laravel)[![License: MIT](https://camo.githubusercontent.com/bfccf36352907760d301a93d26ed45cc0dee15074f45e96f14ccd2b5123e73f2/68747470733a2f2f706f7365722e707567782e6f72672f72696368616e2d666f6e67646173656e2f64617461626173652d636f6e7665727465722d6c61726176656c2f6c6963656e73652e737667)](https://opensource.org/licenses/MIT)[![PHPStan](https://github.com/richan-fongdasen/database-converter-laravel/actions/workflows/phpstan.yml/badge.svg?branch=main)](https://github.com/richan-fongdasen/database-converter-laravel/actions/workflows/phpstan.yml)[![Test](https://github.com/richan-fongdasen/database-converter-laravel/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/richan-fongdasen/database-converter-laravel/actions/workflows/test.yml)[![Coding Style](https://github.com/richan-fongdasen/database-converter-laravel/actions/workflows/coding-style.yml/badge.svg?branch=main)](https://github.com/richan-fongdasen/database-converter-laravel/actions/workflows/coding-style.yml)[![Total Downloads](https://camo.githubusercontent.com/414452fb87678b59f0b8863edec3570dacf489e1838e5ef8b775989efabfe3f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72696368616e2d666f6e67646173656e2f64617461626173652d636f6e7665727465722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/richan-fongdasen/database-converter-laravel)

This package provides a simple way to convert your database schema from one database management system to another. It is built on top of the [Laravel](https://laravel.com) framework.

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

[](#installation)

You can install the package via composer:

```
composer require richan-fongdasen/database-converter-laravel
```

### Publishing Configuration

[](#publishing-configuration)

You can publish the configuration file using the following command:

```
php artisan vendor:publish --provider="RichanFongdasen\DatabaseConverter\DatabaseConverterServiceProvider"
```

The above command publishes the configuration file to `config/database-converter-laravel.php`, and the content of the configuration file will look like this:

```
return [
    'chunk_size' => 700,

    /*
     * Tables to ignore during conversion.
     * By default, the 'migrations' table is always ignored.
     */
    'ignore_tables' => [
        // 'table_name_to_ignore',
        // 'another_table_to_ignore',
    ],
];
```

### Configuration Options

[](#configuration-options)

- **chunk\_size**: The number of records to process in each batch during data conversion. Default is 700.
- **ignore\_tables**: An array of table names to ignore during the conversion process. The `migrations` table is always ignored regardless of this configuration.

Usage
-----

[](#usage)

In this example, we will convert the database schema from MySQL to SQLite.

### Configure the database connection as conversion target

[](#configure-the-database-connection-as-conversion-target)

First, you need to configure the database connection that you want to convert to. You can do this by adding a new database connection configuration in your `config/database.php` file.

```
'connections' => [
    'sqlite' => [
        'driver' => 'sqlite',
        'database' => database_path('database.sqlite'),
        'prefix' => '',
        'foreign_key_constraints' => true,
    ],
],
```

### Run database migration on the conversion target

[](#run-database-migration-on-the-conversion-target)

Before you can convert the database schema, you need to run the migration on the conversion target database. You can do this by running the following command:

```
php artisan migrate --database=sqlite --path=database/migrations
```

### Convert the database schema

[](#convert-the-database-schema)

Now, you can convert the database schema from MySQL to SQLite by running the following command:

```
php artisan db:convert mysql sqlite
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Richan Fongdasen](https://github.com/richan-fongdasen)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance57

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

784d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5222595?v=4)[Richan Fongdasen](/maintainers/richan-fongdasen)[@richan-fongdasen](https://github.com/richan-fongdasen)

---

Top Contributors

[![richan-fongdasen](https://avatars.githubusercontent.com/u/5222595?v=4)](https://github.com/richan-fongdasen "richan-fongdasen (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![MrPunyapal](https://avatars.githubusercontent.com/u/53343069?v=4)](https://github.com/MrPunyapal "MrPunyapal (1 commits)")

---

Tags

databasedatabase-conversiondatabase-migrationslaravellaraveldatabasedatabase-migrationRichan Fongdasendatabase converter

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/richan-fongdasen-database-converter-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/richan-fongdasen-database-converter-laravel/health.svg)](https://phpackages.com/packages/richan-fongdasen-database-converter-laravel)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.6k](/packages/larastan-larastan)[laravel/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[clickbar/laravel-magellan

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

438834.4k1](/packages/clickbar-laravel-magellan)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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