PHP code example of kartmax / dsn-parser
1. Go to this page and download the library: Download kartmax/dsn-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kartmax / dsn-parser example snippets
$dsnDetails = DsnParser::parse();
## Installation for Laravel
If you're using Laravel 5.5 and above, the package will automatically register its service provider.
For older versions of Laravel:
Add the service provider to the `providers` array in `config/app.php`: