2017 © Pedro Peláez
 

library lace

A DSN parser for Doctrine databases and cache drivers.

image

icecave/lace

A DSN parser for Doctrine databases and cache drivers.

  • Wednesday, October 8, 2014
  • by jmalloc
  • Repository
  • 2 Watchers
  • 4 Stars
  • 2,125 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Lace

![Build Status] ![Test Coverage] ![SemVer], (*1)

Lace is a DSN parser for Doctrine database and cache connections., (*2)

Lace was initially created to parse DSN URIs stored in environment variables on the Heroku platform., (*3)

Examples

Database DSN

The DatabaseDsnParser class is responsible for parsing database DSNs into arrays compatible with Doctrine DBAL's driver manager., (*4)

The following drivers are currently supported: * PostgreSQL * MySQL * SQLite, (*5)

use Icecave\Lace\DatabaseDsnParser;

$parser = new DatabaseDsnParser;
$options = $parser->parse('postgres://username:password@hostname:1234/database');

print_r($options);
Array
(
    [driver] => pdo_pgsql
    [user] => username
    [password] => password
    [host] => hostname
    [port] => 1234
    [dbname] => database
)

Cache DSN

The CacheDsnParser class is responsible for parsing DSNs into arrays with the necessary information., (*6)

The following drivers are currently supported: * Redis, (*7)

use Icecave\Lace\CacheDsnParser;

$parser = new CacheDsnParser;
$options = $parser->parse('redis://username:password@hostname:1234');

print_r($options);
Array
(
    [host] => hostname
    [port] => 1234
    [password] => password
)

The Versions

08/10 2014

dev-develop

dev-develop https://github.com/IcecaveStudios/lace

A DSN parser for Doctrine databases and cache drivers.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

parser postgres redis doctrine mysql sqlite heroku dsn

26/08 2014

dev-master

9999999-dev https://github.com/IcecaveStudios/lace

A DSN parser for Doctrine databases and cache drivers.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

parser postgres redis doctrine mysql sqlite heroku dsn

26/08 2014

0.1.0

0.1.0.0 https://github.com/IcecaveStudios/lace

A DSN parser for Doctrine databases and cache drivers.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

parser postgres redis doctrine mysql sqlite heroku dsn