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

https://github.com/jgauthi/component_database

Some class and tools for database usage: Pdo functions, Pagination, Table Configuration...
https://github.com/jgauthi/component_database

mysqli-connection pagination pdo-functions php53 php54 php55 php56 php74 php82

Last synced: 3 months ago
JSON representation

Some class and tools for database usage: Pdo functions, Pagination, Table Configuration...

Awesome Lists containing this project

README

        

# Component Database
Some class and tools for database usage: Pdo functions, Pagination, Table Configuration...

* [Navigation Page](src/NavigationPage.php): Page pagination with mysql or sqlite.
* [Pdo Utils](src/PdoUtils.php): Some utils method with PDO (connexion, insert, update, etc).
* [Pdo Table Configuration](src/PdoTableConfiguration.php): Management of a configuration table, inspired by the `wp_options` table (wordpress).
* [Pdo Alice](src/PdoAlice.php): Generation of fixtures in the database from YAML file _(alice)_ with PDO for PHP Legacy.

## Prerequisite

* PHP 8.2 (v2.1) or old version: 7.4 (v2), 5.6+ (v1.4+), 5.5 (v1.3), 5.4 (v1.2), 5.3 (v1.1), 4 (v1.0)
* Pdo Mysql, Sqlite 3
* (optional) [Alice fixtures](https://github.com/nelmio/alice)

## Install
Edit your [composer.json](https://getcomposer.org) (launch `composer update` after edit):
```json
{
"repositories": [
{ "type": "git", "url": "[email protected]:jgauthi/component_database.git" }
],
"require": {
"jgauthi/component_database": "2.*"
}
}
```

## Documentation
You can look at [folder example](example).