sky-floyd / easy-db-layer
There is no license information available for the latest version (dev-master) of this package.
Database Manager
dev-master
2016-12-09 23:04 UTC
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2025-05-05 16:58:16 UTC
README
This tool provides simple and powerful structure and functionality to work with MySQL database
Structure
At first you need to change Config class properties to your database connection data.
After it you need to create PHP class for each database table. That class must implement DatabaseTables interface. You can take TestTable class as example.
Change $tableName value to your database table name.
$fields array represents mapping of database table fields and data keys in application.
After it you can write functions to manage your table data. Use DBconnection class instance functions to query to database.
License
MIT License