Skip to content

Commit 1f7b99e

Browse files
committed
Added installation via composer into readme
1 parent 46f93bf commit 1f7b99e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

readme.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,29 @@ MysqliDb -- Simple MySQLi wrapper with prepared statements
1919
**[Helper Functions](#helper-commands)**
2020
**[Transaction Helpers](#transaction-helpers)**
2121

22-
### Initialization
22+
### Installation
2323
To utilize this class, first import MysqliDb.php into your project, and require it.
2424

2525
```php
2626
require_once ('MysqliDb.php');
2727
```
2828

29+
### Installation with composer
30+
It is also possible to install library via composer
31+
```
32+
composer require joshcam/mysqli-database-class:dev-master
33+
```
34+
35+
### Initialization
2936
Simple initialization with utf8 charset by default:
3037
```php
3138
$db = new MysqliDb ('host', 'username', 'password', 'databaseName');
3239
```
40+
Or in case usage of the namespaces:
41+
```php
42+
$db = new \MysqliDb ('host', 'username', 'password', 'databaseName');
43+
```
44+
3345

3446
Advanced initialization. If no charset should be set charset, set it to null
3547
```php

0 commit comments

Comments
 (0)