diff --git a/README.md b/README.md index 60fc1b7..aa2b1c3 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. 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); diff --git a/composer.json b/composer.json index 294f3de..8394132 100644 --- a/composer.json +++ b/composer.json @@ -1,18 +1,18 @@ { - "name": "victorwesterlund/libmysqldriver", - "description": "Abstraction library for common mysqli features", + "name": "vlw/mysql", + "description": "Abstraction library for common MySQL/MariaDB DML operations with php-mysqli", "type": "library", - "license": "GPL-3.0-only", + "license": "GPL-3.0-or-later", "authors": [ { "name": "Victor Westerlund", - "email": "victor.vesterlund@gmail.com" + "email": "victor@vlw.se" } ], "minimum-stability": "dev", "autoload": { "psr-4": { - "libmysqldriver\\": "src/" + "vlw\\MySQL\\": "src/" } }, "require": {} diff --git a/src/MySQL.php b/src/MySQL.php index cf7e9ef..f5f56f1 100644 --- a/src/MySQL.php +++ b/src/MySQL.php @@ -1,6 +1,6 @@