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

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

irfantoor/database
==================

Irfan's Database - A bare-minimum and simple database access

0.5(4y ago)0581MITPHPPHP &gt;=7.3

Since Apr 29Pushed 4y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (19)Used By (1)

Irfan's Database
================

[](#irfans-database)

Create models and/or access your databases with ease and least overhead. A bare-minimum and simple database access.

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

[](#installation)

```
$ composer require irfantoor/database
```

Creating a Database object
--------------------------

[](#creating-a-database-object)

**method**: new Database(?array $connection = null)

**parameters**:

- array $connection - Connection array containing the parameters required by the Database Engines like MySQL, SQLite ...

**returns**: Database object

**example**:

```
