Download the PHP package haseebmirza/laravel-db-size without Composer
On this page you can find all versions of the php package haseebmirza/laravel-db-size. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-db-size
Laravel DB Size
Instant DBA overview without opening TablePlus or running raw SQL.
A single Artisan command that shows every table in your database with row counts, data size, index size, and total size — sorted biggest-first. Works with MySQL, PostgreSQL, and SQLite. Zero config.
Why?
- After a production alert — instantly see which table exploded
- Before a migration — know what you're working with
- During code review — "how big is that table anyway?"
- Onboarding — new devs get a feel for the data shape in seconds
No more googling information_schema queries. No more opening a GUI. Just one command.
Installation
Auto-discovered. No config to publish. No migrations.
Usage
Options
| Flag | Description | Default |
|---|---|---|
--connection |
Database connection to use | Default connection |
--sort |
Sort by: total, data, index, rows, name |
total |
--asc |
Sort ascending | Descending |
--json |
Output as JSON | Table format |
Examples
Supported Databases
| Driver | Row Count | Data Size | Index Size |
|---|---|---|---|
| MySQL / MariaDB | Exact | Exact | Exact |
| PostgreSQL | Estimated | Exact | Exact |
| SQLite | Exact | Via dbstat | N/A |
Requirements
- PHP 8.1+
- Laravel 10, 11, 12, or 13
Testing
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
The MIT License (MIT). Please see License File for more information.
Keywords: laravel database size, table size, row count, disk usage, mysql table size, postgres table size, sqlite size, database storage, artisan command, laravel devtools, database inspector, table stats, index size, database overview, laravel dba
All versions of laravel-db-size with dependencies
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
illuminate/database Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0