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...
- Host: GitHub
- URL: https://github.com/jgauthi/component_database
- Owner: jgauthi
- License: gpl-3.0
- Created: 2020-09-17T17:11:02.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-08-15T13:43:53.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T17:56:17.572Z (5 months ago)
- Topics: mysqli-connection, pagination, pdo-functions, php53, php54, php55, php56, php74, php82
- Language: PHP
- Homepage:
- Size: 101 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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).