PHPackages                             connection/connection - 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. connection/connection

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

connection/connection
=====================

A secure, multiple database ORM for PHP

3.2.0(5y ago)217MITPHP

Since Jun 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/TiagoCavalcante/Connection)[ Packagist](https://packagist.org/packages/connection/connection)[ Docs](https://github.com/TiagoCavalcanteTrindade/Connection)[ RSS](/packages/connection-connection/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (3)Dependencies (1)Versions (13)Used By (0)

Connection
==========

[](#connection)

A secure, multiple database ORM for PHP

Getting started
---------------

[](#getting-started)

First, check if you meet all of the **prerequisites**, then **install**

### Prerequisites

[](#prerequisites)

#### MySQL/MariaDB prerequisites

[](#mysqlmariadb-prerequisites)

1. Install `MySQL`/`MariaDB` and configure it
2. In the file `php.ini` (if it doesn't exists rename the file `php.ini-development` to `php.ini`) remove the `;` before the `extension=pdo_mysql` (it's probably in the line 939)

#### PostgreSQL prerequisites

[](#postgresql-prerequisites)

1. Install `PostgreSQL` and configure it or crete a `PostgreSQL` database on [Heroku](https://data.heroku.com/)
2. In the file `php.ini` (if it doesn't exists rename the file `php.ini-development` to `php.ini`) remove the `;` before the `extension=pdo_pgsql` (it's probably in the line 942)

### SQLite prerequisites

[](#sqlite-prerequisites)

1. Install `SQLite3` with the following command: `sudo apt-get install sqlite3`

### Instalation

[](#instalation)

To install you need to:

- execute the following command to install with Composer: `composer require connection/connection`
- execute the following command to install with Git: `git clone https://github.com/TiagoCavalcanteTrindade/Connection`

### First sample

[](#first-sample)

`sample.php`:

```
