PHPackages                             youssef-elghaly/database-manager - 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. youssef-elghaly/database-manager

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

youssef-elghaly/database-manager
================================

A Laravel package for managing database migrations and seeders for modular applications

016Blade

Since Jul 23Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/youssefelghalyb/databasemanager)[ Packagist](https://packagist.org/packages/youssef-elghaly/database-manager)[ RSS](/packages/youssef-elghaly-database-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Database Manager
========================

[](#laravel-database-manager)

A Laravel package that helps manage database migrations and seeders for modular applications.

Features
--------

[](#features)

- Manage database connections for different modules
- Run and track migrations for specific modules
- Create migrations through a builder interface
- Generate and run seeders with various data types

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

[](#installation)

You can install the package via composer:

```
composer require youssefElghaly/database-manager
```

Then publish the package assets:

```
php artisan vendor:publish --provider="YoussefElghaly\DatabaseManager\DatabaseManagerServiceProvider" --tag="databasemanager-config"
```

Optionally, you can publish the views and migrations if you want to customize them:

```
php artisan vendor:publish --provider="YoussefElghaly\DatabaseManager\DatabaseManagerServiceProvider" --tag="databasemanager-views"
php artisan vendor:publish --provider="YoussefElghaly\DatabaseManager\DatabaseManagerServiceProvider" --tag="databasemanager-migrations"
```

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

[](#configuration)

After publishing the configuration file, you can customize it in `config/databasemanager.php`:

```
// config/databasemanager.php
return [
    'connection' => env('DB_MANAGER_CONNECTION', 'database_manager'),
    'routes' => [
        'prefix' => 'database-designer',
        'middleware' => ['web'], // Add your auth middleware here
    ],
    // Other configurations...
];
```

Add the database connection to your `.env` file:

```
DB_MANAGER_CONNECTION=database_manager

```

And add the connection to your `config/database.php` file:

```
'connections' => [
    // ...
    'database_manager' => [
        'driver' => 'mysql',
        'host' => env('DB_HOST', '127.0.0.1'),
        'port' => env('DB_PORT', '3306'),
        'database' => env('DB_DATABASE', 'forge'),
        'username' => env('DB_USERNAME', 'forge'),
        'password' => env('DB_PASSWORD', ''),
        'charset' => 'utf8mb4',
        'collation' => 'utf8mb4_unicode_ci',
        'prefix' => '',
    ],
    // ...
]
```

Run Migrations
--------------

[](#run-migrations)

Run the package migrations to set up the required tables:

```
php artisan migrate
```

Usage
-----

[](#usage)

### Accessing the Dashboard

[](#accessing-the-dashboard)

Visit `/database-designer` in your browser to access the database management dashboard.

### Creating Migrations

[](#creating-migrations)

1. Navigate to `/database-designer/create-migration`
2. Select a module, database connection, and table name
3. Add columns and their properties
4. Submit the form to create and run the migration

### Managing Seeders

[](#managing-seeders)

1. Navigate to `/database-designer/seeder`
2. Select a module and database table
3. Configure seeder settings
4. Create and run the seeder

Commands
--------

[](#commands)

The package provides custom Artisan commands:

```
# Check migration status for a specific module
php artisan module:migrate-custom-status {module} --database={connection}
```

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

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance42

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/cafcd4621d7ad5f4d428bcb37f0c45dfbbf77400e708d04ea3032766c90eaf51?d=identicon)[youseefelghalyb](/maintainers/youseefelghalyb)

---

Top Contributors

[![youssefelghalyb](https://avatars.githubusercontent.com/u/95630658?v=4)](https://github.com/youssefelghalyb "youssefelghalyb (14 commits)")

### Embed Badge

![Health badge](/badges/youssef-elghaly-database-manager/health.svg)

```
[![Health](https://phpackages.com/badges/youssef-elghaly-database-manager/health.svg)](https://phpackages.com/packages/youssef-elghaly-database-manager)
```

###  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.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

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

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/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)
