File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff 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
2323To utilize this class, first import MysqliDb.php into your project, and require it.
2424
2525``` php
2626require_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
2936Simple 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
3446Advanced initialization. If no charset should be set charset, set it to null
3547``` php
You can’t perform that action at this time.
0 commit comments