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

This package is not auto-updated.

Last update: 2024-09-23 13:52:24 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