Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/erickfirmo/db.connection.php.pdo
- Owner: erickfirmo
- Created: 2019-12-08T22:55:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-04T17:12:53.000Z (about 3 years ago)
- Last Synced: 2024-10-11T06:41:02.633Z (about 1 month ago)
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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' => ''
];```