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 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

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

 [![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 12% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

874d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/69368947?v=4)[Kauê Leivingson Romero Melo](/maintainers/Kaue-Romero)[@Kaue-Romero](https://github.com/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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

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