Select2 Instance

Simple Select2 Implementation.


MySQL

Implementation MySQL instance.

$select2 = new \Samy\Select2\MySql($host, $username, $password, $database, $port = 3306);

PostgreSQL

Implementation PostgreSQL instance.

$select2 = new \Samy\Select2\PostgreSql($host, $username, $password, $database, $port = 5432);