dev-master
9999999-dev https://github.com/yorch81/v3whV3ctor WareHouse Core for MongoDb and MySQL
Apache-2.0
The Requires
- php >=5.4.0
- monolog/monolog 1.13.1
- catfan/medoo dev-master
mongodb mysql warehouse
V3ctor WareHouse Core for MongoDb and MySQL
V3ctor WareHouse Core for MongoDb and MySQL., (*1)
Execute phpdoc -d v3wh/, (*2)
For run Unit Test, complete information connection and execute the next commands:, (*3)
phpunit V3WareHouseTest.php, (*4)
Create file composer.json, (*5)
{ "require": { "php": ">=5.4.0", "yorch/v3wh" : "dev-master", "monolog/monolog": "1.13.1", "catfan/medoo": "v1.1.2" } }
Execute composer.phar install, (*6)
//$v3ctor = V3WareHouse::getInstance('v3Mongo', $hostname, $username, $password, $dbname, $port); // For PHP 7 $v3ctor = V3WareHouse::getInstance('v3MongoDB', $hostname, $username, $password, $dbname, $port); if (! $v3ctor->isConnected()) die("Unable load V3ctor WareHouse"); $doc = array('r' => 666); $newObject = $v3ctor->newObject("demo", $doc); var_dump($newObject);
v3wh is a Core for MongoDb and needs php mongo module. For MySQL and SQL Server support is required _id field in the table, check demo.sql., (*7)
http://es.wikipedia.org/wiki/Singleton, (*8)
P.D. Let's go play !!!, (*9)
V3ctor WareHouse Core for MongoDb and MySQL
Apache-2.0
mongodb mysql warehouse