Download .zip |
Info | Example | Demos | View files (12) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2019-04-04 (4 hours ago) | Not enough user ratings | Total: 77 This week: 1 | All time: 9,316 This week: 432 |
Version | License | PHP version | Categories | |||
v3wh 1.0 | Custom (specified... | 5 | PHP 5, Databases |
Description | Author | ||||||||||||||
This package can store and retrieve objects in MongoDB, MySQL and Microsoft SQL Server. |
|
V3ctor WareHouse Core for MongoDb and MySQL.
Execute phpdoc -d v3wh/
For run Unit Test, complete information connection and execute the next commands: > phpunit V3WareHouseTest.php
Create file composer.json
{
"require": {
"php": ">=5.4.0",
"yorch/v3wh" : "dev-master",
"monolog/monolog": "1.13.1",
"catfan/medoo": "v1.1.2"
}
}
Execute composer.phar install
//$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.
http://es.wikipedia.org/wiki/Singleton
P.D. Let's go play !!!
Files |
File | Role | Description | ||
---|---|---|---|---|
v3mysql (3 files) | ||||
composer.json | Data | Auxiliary data | ||
demo.sql | Data | Auxiliary data | ||
index.php | Example | Example script | ||
LICENSE | Lic. | License | ||
README.md | Doc. | Documentation | ||
V3WareHouse.class.php | Class | Class source | ||
V3WareHouseMyTest.php | Test | Class source | ||
V3WareHouseTest.php | Test | Class source | ||
WareHouse.class.php | Class | Class source |
Files | / | v3mysql |
File | Role | Description |
---|---|---|
create.php | Example | Example script |
DB.php | Class | Class source |
index.php | Aux. | Auxiliary script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.