dev-master
9999999-dev https://github.com/svenanders/php-mysqliEasy MySQL/MariaDB implementation
CC-BY
The Requires
- php >=5.3.0
- psr/log ~1.0
- shopsys/sysstdlib dev-master
The Development Requires
- php >=5.3.0
hash
Easy MySQL/MariaDB implementation
http://blog.robbestad.com, (*1)
In your composer.json, add the following line, (*2)
"svenanders/sarmysql": "dev-master"
In your code, include the class:, (*3)
use SarMysql/SarMysql;
(or use composer's autoloader), (*4)
and then in your functions, use it like this:, (*5)
$dbConn = new SarMysql/SarMysql("environment", "database", "collection"); $cursor = $dbConn->find(array("key" => "value"));
Supports:, (*6)
->find ->insert ->update ->delete
Tests:, (*7)
execute phpunit vendor/svenanders/sardatabases/tests/ from the root of your project to run the tests, (*8)
Sven Anders Robbestad (C) 2014, (*9)
, (*10)
Easy MySQL/MariaDB implementation
CC-BY
hash