PHP code example of icecave / lace
1. Go to this page and download the library: Download icecave/lace 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/ */
icecave / lace example snippets
use Icecave\Lace\DatabaseDsnParser;
$parser = new DatabaseDsnParser;
$options = $parser->parse('postgres://username:password@hostname:1234/database');
print_r($options);
use Icecave\Lace\CacheDsnParser;
$parser = new CacheDsnParser;
$options = $parser->parse('redis://username:password@hostname:1234');
print_r($options);