PHPackages                             mhmmdq/database - 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. mhmmdq/database

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

mhmmdq/database
===============

A php class for managing and connecting to a database

1.1.2(4y ago)43552MITPHPPHP &gt;=5.5

Since Jun 8Pushed 4y ago2 watchersCompare

[ Source](https://github.com/mhmmdq/database)[ Packagist](https://packagist.org/packages/mhmmdq/database)[ RSS](/packages/mhmmdq-database/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

Query builder class php
=======================

[](#query-builder-class-php)

This class is responsible for creating and executing sql commands and helps you to execute as easily as possible and safely.

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

[](#installation)

You can use a composer to install the package

```
$ composer require mhmmdq/database
```

How to connect to the database
------------------------------

[](#how-to-connect-to-the-database)

To connect to the database, you need to send data to the `connection` class, which must be done as follows

`Driver` The type of database driver to connect

`Host` Database server

`Port` Database port - 3306 by default

`Username` Database login username

`Password` Database login password

`Charset` String encoding type - utf8mb4 by default

`Collation` Letter comparison method - a default of utf8mb4\_general\_ci

`Database` Database name

```
