Download the PHP package patrick-hull/mysql-wrapper without Composer
On this page you can find all versions of the php package patrick-hull/mysql-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download patrick-hull/mysql-wrapper
More information about patrick-hull/mysql-wrapper
Files in patrick-hull/mysql-wrapper
Package mysql-wrapper
Short Description A Wrapper for simple MySQL statements that uses Prepared Statements
License MIT
Informations about the package mysql-wrapper
MysqlWrapper
MysqlWrapper is a PHP library designed to simplify database operations with MySQL. This package provides a straightforward and elegant interface for performing common database queries, including insert, update, delete, and select operations.
Table of Contents
- Installation
- Usage
- DbConnection
- DeleteQuery
- InsertQuery
- UpdateQuery
- SelectQuery
- Contributing
- License
Installation
Note: This software is still considered in beta. Use at your own risk
You can install the package via Composer. Run the following command:
Usage
DbConnection
The DbConnection
class is responsible for establishing a connection to the MySQL database.
DeleteQuery
The DeleteQuery
class allows you to delete records from a specified database table based on criteria.
InsertQuery
The InsertQuery
class enables you to insert new records into a specified database table.
UpdateQuery
The UpdateQuery
class is used to update existing records in a database table based on specified criteria.
SelectQuery
The SelectQuery
class allows you to retrieve data from a database table with various filtering options.
In the SelectQuery class, you are also able to leverage Redis as a caching solution. See an example below:
Contributing
Contributions are welcome! Please submit a pull request or open an issue to discuss potential improvements.
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of mysql-wrapper with dependencies
ext-redis Version *