mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-14 08:43:40 +02:00
doc(chore): add namechange to README
This commit is contained in:
parent
88f2de4bcf
commit
3432b50730
1 changed files with 6 additions and 6 deletions
12
README.md
12
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:
|
For example:
|
||||||
```php
|
```php
|
||||||
|
@ -17,16 +17,16 @@ SELECT $columns FROM $table WHERE $filter ORDER BY $order_by LIMIT $limit;
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!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
|
## Install from composer
|
||||||
|
|
||||||
```
|
```
|
||||||
composer require victorwesterlund/libmysqldriver
|
composer require vlw/mysql
|
||||||
```
|
```
|
||||||
|
|
||||||
```php
|
```php
|
||||||
use libmysqldriver/MySQL;
|
use vlw\MySQL\MySQL;
|
||||||
```
|
```
|
||||||
|
|
||||||
# Example / Documentation
|
# Example / Documentation
|
||||||
|
@ -53,7 +53,7 @@ id|beverage_type|beverage_name|beverage_size
|
||||||
3|tea|black|15
|
3|tea|black|15
|
||||||
|
|
||||||
```php
|
```php
|
||||||
use libmysqldriver\MySQL;
|
use vlw\MySQL\MySQL;
|
||||||
|
|
||||||
// Pass through: https://www.php.net/manual/en/mysqli.construct.php
|
// Pass through: https://www.php.net/manual/en/mysqli.construct.php
|
||||||
$db = new MySQL($host, $user, $pass, $db);
|
$db = new MySQL($host, $user, $pass, $db);
|
||||||
|
|
Loading…
Add table
Reference in a new issue