PHPackages                             leivingson/autodb - 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. leivingson/autodb

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

leivingson/autodb
=================

This package helps you creating models from your database connection in laravel.

1.0.0(2y ago)012MITPHP

Since Mar 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Kaue-Romero/auto-db)[ Packagist](https://packagist.org/packages/leivingson/autodb)[ RSS](/packages/leivingson-autodb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

 [![example](https://private-user-images.githubusercontent.com/69368947/328669635-358081a3-8e9e-4b2b-bd8b-ed004ea2af4c.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyMTQ4NDcsIm5iZiI6MTc3NTIxNDU0NywicGF0aCI6Ii82OTM2ODk0Ny8zMjg2Njk2MzUtMzU4MDgxYTMtOGU5ZS00YjJiLWJkOGItZWQwMDRlYTJhZjRjLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAzVDExMDkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMyZWYwYjE0YTkxZTJiOWQ5OTMzZjM2YjllNTM0YzNhZTY4Y2EyY2JlM2U2YzEwOTlhYTUyMmZlYmYwMWExYzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GABrbHIhuEfHaXzwsttRHk7N9_Kk9XOVDuI2K5zHdE4)](https://private-user-images.githubusercontent.com/69368947/328669635-358081a3-8e9e-4b2b-bd8b-ed004ea2af4c.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUyMTQ4NDcsIm5iZiI6MTc3NTIxNDU0NywicGF0aCI6Ii82OTM2ODk0Ny8zMjg2Njk2MzUtMzU4MDgxYTMtOGU5ZS00YjJiLWJkOGItZWQwMDRlYTJhZjRjLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAzVDExMDkwN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMyZWYwYjE0YTkxZTJiOWQ5OTMzZjM2YjllNTM0YzNhZTY4Y2EyY2JlM2U2YzEwOTlhYTUyMmZlYmYwMWExYzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.GABrbHIhuEfHaXzwsttRHk7N9_Kk9XOVDuI2K5zHdE4)

 [![version](https://camo.githubusercontent.com/1c8c078a0625728bffd5168c02a8327472a0117ea34d46f4a021945747cc77a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b61676973742d4632384431413f7374796c653d666f722d7468652d6261646765266c6f676f3d5061636b6167697374266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/1c8c078a0625728bffd5168c02a8327472a0117ea34d46f4a021945747cc77a7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b61676973742d4632384431413f7374796c653d666f722d7468652d6261646765266c6f676f3d5061636b6167697374266c6f676f436f6c6f723d7768697465) [![laravel](https://camo.githubusercontent.com/5a580364ff3bd338370177402c5c050ff81a1933927e1e475c920c90850b38a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/5a580364ff3bd338370177402c5c050ff81a1933927e1e475c920c90850b38a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d4646324432303f7374796c653d666f722d7468652d6261646765266c6f676f3d6c61726176656c266c6f676f436f6c6f723d7768697465)

MySQL AutoDB
============

[](#mysql-autodb)

An automatic migrations and models generator for MySQL database
---------------------------------------------------------------

[](#an-automatic-migrations-and-models-generator-for-mysql-database)

The AutoDB is a tool that generates a database model from a given connection in .env file. The tool is designed to be used in the context of huges amount of data when migrating for Laravel or automatize a repetitive task. The project takes the dataset from the database and generates the migrations and models with the attributes and cast the fields in models for each column. The code uses Levenshtein Algorithm to translate MySQL types to Eloquent types.

### Installation

[](#installation)

`composer require leivingson/autodb`

### Usage

[](#usage)

`php artisan autodb:generate`

### Database Supports

[](#database-supports)

[![mysql](https://camo.githubusercontent.com/4d4a540f0634a4d031f64b08599ce09a2b9d43e11bb96e1923d2b1cf4ead11f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d7953514c2d3030354338343f7374796c653d666f722d7468652d6261646765266c6f676f3d6d7973716c266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/4d4a540f0634a4d031f64b08599ce09a2b9d43e11bb96e1923d2b1cf4ead11f4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d7953514c2d3030354338343f7374796c653d666f722d7468652d6261646765266c6f676f3d6d7973716c266c6f676f436f6c6f723d7768697465)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

780d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/404c989d7b437240145cf0140a4fd05cdded693b1e9878a5369bfd7150cc459c?d=identicon)[Kaue-Romero](/maintainers/Kaue-Romero)

---

Top Contributors

[![Kaue-Romero](https://avatars.githubusercontent.com/u/69368947?v=4)](https://github.com/Kaue-Romero "Kaue-Romero (19 commits)")

### Embed Badge

![Health badge](/badges/leivingson-autodb/health.svg)

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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