PHPackages                             edgrosvenor/laravelizer - 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. edgrosvenor/laravelizer

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

edgrosvenor/laravelizer
=======================

Create Laravel models, migrations, and factories for an existing MySQL database

0.2.0(6y ago)114[8 issues](https://github.com/grosv/laravelizer/issues)[1 PRs](https://github.com/grosv/laravelizer/pulls)MITTSQLPHP ^7.2

Since Feb 15Pushed 6y ago3 watchersCompare

[ Source](https://github.com/grosv/laravelizer)[ Packagist](https://packagist.org/packages/edgrosvenor/laravelizer)[ RSS](/packages/edgrosvenor-laravelizer/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

laravelizer (a work in progress)
================================

[](#laravelizer-a-work-in-progress)

### Create Models, Migrations, and Factories for any existing MySQL database

[](#create-models-migrations-and-factories-for-any-existing-mysql-database)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ebc2c2936c1a669ebc5decdfe39e3d3cab053f4382fd4f2a3cb4d82a673ef2c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656467726f7376656e6f722f6c61726176656c697a65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edgrosvenor/laravelizer)[![StyleCI](https://camo.githubusercontent.com/6aaa73189ca5bb2022293a3f30b991b17ac59a2d001077355953170f8e9b34f9/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3233343630323535332f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/234602553)[![Build Status](https://camo.githubusercontent.com/462c7b0aa6a97e6617db9207036713a13de4113d05f6114be1234577b2b07841/68747470733a2f2f6170702e6368697070657263692e636f6d2f70726f6a656374732f66373039303737322d316566312d343433652d616366632d3863623737636238346235312f7374617475732f6d6173746572)](https://camo.githubusercontent.com/462c7b0aa6a97e6617db9207036713a13de4113d05f6114be1234577b2b07841/68747470733a2f2f6170702e6368697070657263692e636f6d2f70726f6a656374732f66373039303737322d316566312d343433652d616366632d3863623737636238346235312f7374617475732f6d6173746572)

Whether you want to migrate away from another framework to Laravel or you just want to connect a Laravel installation to your database, this package makes it really easy.

Just define the connection to your database as you would any Laravel database. It doesn't have to be the default connection, but it can be. Then install this package and follow the instructions to create migrations, models, factories, tests, and / or Nova resources based on the structure of and existing data within your database.

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

[](#installation)

Create the Laravel installation into which you want to add model, migrations, and factories for your existing (presumably non-Laravel) database. Then install this package in that Laravel installation like so:

```
composer require edgrosvenor/laravelizer --dev
```

Configuration
-------------

[](#configuration)

By default, models will be created in your app root, factories in database/factories, and migrations in database/migrations. Optionally Nova resources can be added at app/Nova and tests can be generated at tests/unit/. You can choose whether to disable any of these or change the paths at which they're created by publishing `php artisan vendor:publish` and editing config/laravelizer.php.

When you publish assets, the stubs used for each component are also published. We use blade templates for our stubs so they are pretty easy to edit if you want to change things up a bit.

Usage
-----

[](#usage)

```
php artisan laravelize {table_name?} {--connection=} {--force}
```

If you do not specify a table name, we'll just do all of them.

### Options

[](#options)

`--force` Overwrite any existing files related to the table. `--connection=` Name of the database connection you want to use if not the default connection.

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

[](#contributing)

I'd love some help to make this package super useful for the community. Submit a PR to improve the code of the README or just open an issue letting me know what you'd like to see added.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

2276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55eed7400c452edf7e7adfa4f1c6676b65b5ce1867fff6bddcb80b1bb45360af?d=identicon)[edgrosvenor](/maintainers/edgrosvenor)

---

Top Contributors

[![edgrosvenor](https://avatars.githubusercontent.com/u/1053395?v=4)](https://github.com/edgrosvenor "edgrosvenor (17 commits)")

### Embed Badge

![Health badge](/badges/edgrosvenor-laravelizer/health.svg)

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

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M191](/packages/spatie-laravel-backup)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[cybercog/laravel-clickhouse

ClickHouse migrations for Laravel

163166.8k](/packages/cybercog-laravel-clickhouse)[clickbar/laravel-magellan

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

423715.4k1](/packages/clickbar-laravel-magellan)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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