PHPackages                             schwarzer/laravel-mysql-to-seeder - 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. schwarzer/laravel-mysql-to-seeder

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

schwarzer/laravel-mysql-to-seeder
=================================

MySQL to Laravel &gt;5.1 Seeder

v0.9.3(7y ago)138.6k3MITPHPPHP &gt;=5.6

Since Feb 1Pushed 7y ago4 watchersCompare

[ Source](https://github.com/SchwarzerIT/laravel-mysql-to-seeder)[ Packagist](https://packagist.org/packages/schwarzer/laravel-mysql-to-seeder)[ RSS](/packages/schwarzer-laravel-mysql-to-seeder/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

MySQL to Laravel Seeder
=======================

[](#mysql-to-laravel-seeder)

[![Packagist](https://camo.githubusercontent.com/58a8fededb6709ab553199fc08b68c06da33ffd8e80318a822af26d7ffe6b14a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7363687761727a65722f6c61726176656c2d6d7973716c2d746f2d7365656465722e737667)](https://packagist.org/packages/schwarzer/laravel-mysql-to-seeder)[![Packagist](https://camo.githubusercontent.com/07a841d7acff0ab32503c80409ed6bf455d2efdff765e34508f5dfd791a2ca64/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7363687761727a65722f6c61726176656c2d6d7973716c2d746f2d7365656465722e737667)](https://packagist.org/packages/schwarzer/laravel-mysql-to-seeder)[![Packagist](https://camo.githubusercontent.com/63989e9fb080d83c45e1f67ecb1cc10f4839d1eefe40f249960d5f7e51aa0632/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7363687761727a65722f6c61726176656c2d6d7973716c2d746f2d7365656465722e737667)](https://packagist.org/packages/schwarzer/laravel-mysql-to-seeder)

I was in need of a tool to export Data from an existing MySQL DB to a Laravel Seeder. I searched online for it, but found not the right tool I wanted. I stumbled upon the [namelivia/mysql-to-laravel-seed](https://github.com/namelivia/mysql-to-laravel-seed).

But it ...

- ... used outdated functions
- ... forced me to create a export schema
- ... didn't create working Seeders (missing `use Illuminate\Database\Seeder;`)
- and the Seeders didn't look nice

I decided to create my own version of a MySQL to Laravel Seeder Tool.

#### works with

[](#works-with)

PHP VersionMySQL Version5.6.175.6.255.6.175.7.107.0.25.6.257.0.25.7.10I welcome all notifications about working environments. Just mail me (**) and I'll put it up here, or send a merge request.

Simple Examples
---------------

[](#simple-examples)

Create a file named export.php in your Laravel root (*where your `.env` is*) and execute it by using `php ./export.php` . Done.

### Use without Composer autoload

[](#use-without-composer-autoload)

```
