diff --git a/README.md b/README.md index 60fc1b7..8a07f84 100644 --- a/README.md +++ b/README.md @@ -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);