Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erickfirmo/db.connection.php.pdo

:elephant: PHP class for connection to MySQL database using PDO
https://github.com/erickfirmo/db.connection.php.pdo

Last synced: 8 days ago
JSON representation

:elephant: PHP class for connection to MySQL database using PDO

Awesome Lists containing this project

README

        

# DBConnection PDO

PHP class for connection to MySQL database using PDO. Developed by Érick Firmo (BR) http://erickfirmo.dev

## Requirements
- PHP >= 7

## Install
To install with composer:

```sh
composer require erickfirmo/dbconnection
```

## Usage
```php
getPDOConnection();

```

### Database Settings
Return an array with the database settings:
```php
'localhost',
'driver' => 'mysql',
'charset' => 'utf-8',
'database' => '',
'user' => '',
'password' => ''

];

```