You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***Class to make it very easy to deal with database connections.***
8
+
***A class to make it very easy to deal with database connections.***
9
9
10
10
This is [__version 4__](https://github.com/ezSQL/ezSQL/tree/v4) that has many modern programming practices in which will break users of version 3.
11
11
12
12
[__Version 3__](https://github.com/ezSQL/ezSQL/tree/v3) broke version 2.1.7 in one major way, it required *PHP 5.6*. Which drop mysql extension support, other than that, nothing as far using the library was changed, only additional features.
13
13
14
-
This library has an `Database` class, a combination of the [Factory](https://en.wikipedia.org/wiki/Factory_method_pattern) pattern with an [Dependency Injection](https://en.wikipedia.org/wiki/Dependency_injection) container hosting. The library is following many OOP principles, one in which, properties public access has been removed.
14
+
This library has an `Database` class, an combination of the [Factory](https://en.wikipedia.org/wiki/Factory_method_pattern) pattern with an [Dependency Injection](https://en.wikipedia.org/wiki/Dependency_injection) container hosting. This library now is following many OOP principles, one in which, the methods properties public access has been removed. This library also following PSR-2, PSR-4, and PSR-11 conventions.
15
15
16
-
- More Todo...
16
+
* More Todo...
17
17
18
18
For an full overview see [documentation Wiki](https://github.com/ezSQL/ezSQL/WIKI.md), which is not completely finish.
19
19
@@ -26,18 +26,84 @@ For an full overview see [documentation Wiki](https://github.com/ezSQL/ezSQL/WIK
26
26
```php
27
27
require 'vendor/autoload.php';
28
28
29
-
// '****' is one of **mysqli**, **pgsql**, **sqlsrv**, **sqlite3**, or **Pdo**.
29
+
// **** is one of mysqli, pgsql, sqlsrv, sqlite3, or Pdo.
$setting = new Config('****', [$dsn_path_user, $password, $database, $or, $other_settings]);
38
+
$setting = new Config('****', [$dsn_path_user, $password, $database, $other_settings]);
39
39
40
40
$db = new ez_****($settings);
41
41
```
42
42
43
+
This library will assume the developer is using some sort of IDE with intellisense enabled. The comments/doc-block area will hold any missing documentations. For additional examples see __phpunit__ tests, The tests are fully functional integration tests, meaning the are live database tests, no mocks.
0 commit comments