PHP的mongodb操作类:TmongoDB

jopen 10年前

1. TmongoDB快速轻量级.
2. TmongoDB易于使用,不管你多笨.
3. 支持静态方法和动态方法调用,mongodb操作随心所欲.
4. 后续还将支持主从操作.

include "./TmongoDB.php";  $db = new TmongoDB();  $argv = array('uid'=>'123456');  $result = $db::findAll($argv);  print_r($result);
设定数据库
include "./TmongoDB.php";  $db = new TmongoDB('test', 'user');  $argv = array('uid'=>'123456');  $result = $db->findAll($argv);  print_r($result);
静态调用
include "./TmongoDB.php";  $argv = array('uid'=>'123456');  $result = TmongoDB::findAll($argv);  print_r($result);

项目主页:http://www.open-open.com/lib/view/home/1387374790624