Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robbestad/php-mysqli
Lightweight MySQL/MariaDB implementation
https://github.com/robbestad/php-mysqli
Last synced: about 1 month ago
JSON representation
Lightweight MySQL/MariaDB implementation
- Host: GitHub
- URL: https://github.com/robbestad/php-mysqli
- Owner: robbestad
- Created: 2014-06-30T21:42:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-05T10:55:27.000Z (over 10 years ago)
- Last Synced: 2024-04-13T17:11:00.412Z (9 months ago)
- Language: PHP
- Size: 164 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
->deleteTests:
execute **phpunit vendor/svenanders/sardatabases/tests/** from the root of your project to run the tests
#####License:
Sven Anders Robbestad (C) 2014