doc(chore): add namechange to README

This commit is contained in:
Victor Westerlund 2024-09-25 13:08:13 +00:00
parent 88f2de4bcf
commit 3432b50730

View file

@ -1,6 +1,6 @@
# php-libmysqldriver
# php-mysql
This library provides abstraction methods for common operations on MySQL-like databases like `SELECT`, `UPDATE`, and `INSERT` using method chaining for the various MySQL features.
This is a simple abstraction library for MySQL DML operations like `SELECT`, `UPDATE`, and `INSERT` using method chaining.
For example:
```php
@ -17,16 +17,16 @@ SELECT $columns FROM $table WHERE $filter ORDER BY $order_by LIMIT $limit;
```
> [!IMPORTANT]
> This library is built on top of the PHP [`MySQL Improved`](https://www.php.net/manual/en/book.mysqli.php) extension and requires PHP 8.0 or newer.
> This library requires the [`MySQL Improved`](https://www.php.net/manual/en/book.mysqli.php) extension and requires PHP 8.0 or newer.
## Install from composer
```
composer require victorwesterlund/libmysqldriver
composer require vlw/mysql
```
```php
use libmysqldriver/MySQL;
use vlw\MySQL\MySQL;
```
# Example / Documentation
@ -53,7 +53,7 @@ id|beverage_type|beverage_name|beverage_size
3|tea|black|15
```php
use libmysqldriver\MySQL;
use vlw\MySQL\MySQL;
// Pass through: https://www.php.net/manual/en/mysqli.construct.php
$db = new MySQL($host, $user, $pass, $db);