Skip to content

TheWebChimp/Dabbie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dabbie

Simple Database Connector

Instalation

Require webchimp/dabbie with Composer.

Usage

Dabbie helps you to connect to your database and gives you a handler to use PDO. As it is now, Dabbie is just a simple wrapper.

Connect the following way:

	$dabbie = new Dabbie([
		'host' => '127.0.0.1',
		'user' => 'root',
		'name' => 'database',
		'pass' => 'password123'
	]);

And then run queries the following way:

	$sql = "SELECT COUNT(*) AS total FROM `user`;";
	$row = $dabbie->query($sql)->fetch(PDO::FETCH_COLUMN);

About

Simple Database Connector

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages