webchimp/dabbie

Simple database connection

Installs: 87

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/webchimp/dabbie

dev-main 2021-10-20 15:39 UTC

This package is auto-updated.

Last update: 2025-09-20 23:49:19 UTC


README

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