natanfelles / codeigniter-db
Database Commands for CodeIgniter 4
Installs: 73
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 5
Forks: 3
Open Issues: 0
Type:codeigniter-command
This package is auto-updated.
Last update: 2025-03-01 00:13:42 UTC
README
Installation is best done via Composer. Assuming Composer is installed globally, you may use the following command:
composer require natanfelles/codeigniter-db
Database Commands for CodeIgniter 4
Adds the following commands to the Database group:
Command | Description |
---|---|
db:create | Creates a database |
db:delete | Deletes a database |
db:delete_table | Deletes a database table |
db:list | Lists databases |
db:query | Executes a SQL query |
db:show | Shows databases information |
db:show_table | Shows a database table structure |
Preview
Configuration
Map the NatanFelles\CodeIgniter\DB
namespace to the src folder of this project.
For example:
Open the app/Config/Autoload.php file and add a $psr4
index like this:
$psr4['NatanFelles\CodeIgniter\DB'] = ROOTPATH . 'codeigniter-db/src';
Contribute
Any contribution related to bugs or improvements of this project will be very well accepted.
If you can, consider a donation: