PHPackages                             bauhu/db - 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. bauhu/db

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

bauhu/db
========

Fast Mysql

0.0.4(3y ago)022proprietaryPHP

Since Aug 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Bauhu/db)[ Packagist](https://packagist.org/packages/bauhu/db)[ RSS](/packages/bauhu-db/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

DB
==

[](#db)

This lightweight database class is written with PHP and uses the MySQLi extension, it uses prepared statements to properly secure your queries, no need to worry about SQL injection attacks.

The MySQLi extension has built-in prepared statements that you can work with, this will prevent SQL injection and prevent your database from being exposed, some developers are confused on how to use these methods correctly so I've created this easy to use database class that'll do the work for you.

This database class is beginner-friendly and easy to implement, with the native MySQLi methods you need to write 3-7 lines of code to retrieve data from a database, with this class you can do it with just 1-2 lines of code, and is much easier to understand.

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

[](#installation)

This project using composer.

```
$ composer require bauhu/db

```

Usage
-----

[](#usage)

### Connect to MySQL database:

[](#connect-to-mysql-database)

```
