Skip to content

robbestad/php-mysqli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightweight MySQL/MariaDB module for PHP

###More info

http://blog.robbestad.com

How to use

In your composer.json, add the following line

"svenanders/sarmysql": "dev-master"

In your code, include the class:

use SarMysql/SarMysql;

(or use composer's autoloader)

and then in your functions, use it like this:

$dbConn = new SarMysql/SarMysql("environment", "database", "collection");
$cursor = $dbConn->find(array("key" => "value"));

Supports:

->find
->insert
->update
->delete

Tests:

execute phpunit vendor/svenanders/sardatabases/tests/ from the root of your project to run the tests

#####License:

Sven Anders Robbestad (C) 2014

CC BY

About

Lightweight MySQL/MariaDB implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages