Skip to content

Commit

Permalink
dox
Browse files Browse the repository at this point in the history
  • Loading branch information
dakujem committed Sep 9, 2018
1 parent 85ca75c commit e5e5d70
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ $conf = $dsn->getConfig();
It is also possible to map the values from the URL, for example for converting the driver value from deprecated "mysql", this can be used:
```php
$dsn = new Dsn('mysql://localhost/my_db', [
'driver' => Dsn::valueMapper(['mysql' => 'mysqli'], 'scheme'),
]);
'driver' => Dsn::valueMapper(['mysql' => 'mysqli'], 'scheme'),
]);
echo $dsn->driver; // "mysqli"
```

> :bulb: `Dsn` integrates well with [DiBi]( https://github.com/dg/dibi ) or Laravel configurations.
### Integration

`Dsn` integrates well with [DiBi]( https://github.com/dg/dibi ), Laravel,
or any other framework or stack where remote services are used.

In **Laravel**, instead of
```
Expand Down

0 comments on commit e5e5d70

Please sign in to comment.