PHPackages                             aseancode/dbcommands - 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. aseancode/dbcommands

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

aseancode/dbcommands
====================

laravel command to create/drop database(MySQL)

0225PHP

Since Oct 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/LytayTOUCH/laravel-dbcommands)[ Packagist](https://packagist.org/packages/aseancode/dbcommands)[ RSS](/packages/aseancode-dbcommands/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel DbCommands Package
==========================

[](#laravel-dbcommands-package)

This package provides you with a simple tool to make laravel command to create/drop database without touching directly on database engine.

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

[](#installation)

Via Composer

```
$ composer require aseancode/dbcommands
```

If you do not run Laravel 5.5 (or higher), then add the service provider in `config/app.php`:

```
// config/app.php
'providers' => [
    ...
    /*
    * Package Service Providers...
    */
    AseanCode\DbCommands\DbCommandsServiceProvider::class,
    ...
];
```

Publish env files into laravel root project and override existing env file for MySQL:

```
$ php artisan vendor:publish --tag=envmysql --force
```

Publish env files into laravel root project and override existing env file for SQLite:

```
$ php artisan vendor:publish --tag=envsqlite --force
```

Publish env files into laravel root project and override existing env file for Postgresql:

```
$ php artisan vendor:publish --tag=envpgsql --force
```

Generate key within the project:

```
$ php artisan key:generate
```

Usage command to create database for all environments:

```
$ php artisan db:create --all
```

Usage command to drop database for all environments:

```
$ php artisan db:drop --all
```

Configuration as needed
-----------------------

[](#configuration-as-needed)

In order to make some change base on your preference of database connnection, let's check on all envfiles after publishing to root project.

Be Aware
--------

[](#be-aware)

Every env files has these configuration code.

```
CHARSET="utf8mb4"
COLLATION="utf8mb4_unicode_ci"
DB_ENGINE="InnoDB ROW_FORMAT=DYNAMIC"

```

In config/database.php, change this line:

```
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'engine' => null,
```

To

```
'charset' => env('CHARSET', 'utf8mb4'),
'collation' => env('COLLATION', 'utf8mb4_unicode_ci'),
'engine' => env('DB_ENGINE', 'InnoDB ROW_FORMAT=DYNAMIC'),
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

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/36d9ecba3fb0380534277f11ed5b12e5aad0eb1f8eeec6c0ad3c855e567168b4?d=identicon)[LytayTouch](/maintainers/LytayTouch)

---

Top Contributors

[![LytayTOUCH](https://avatars.githubusercontent.com/u/769127?v=4)](https://github.com/LytayTOUCH "LytayTOUCH (12 commits)")

### Embed Badge

![Health badge](/badges/aseancode-dbcommands/health.svg)

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

###  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)
