Recommend this page to a friend! |
Download |
Info | Example | Demos | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 93 | All time: 9,900 This week: 455 |
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. |
|
<?php |
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 (12) |
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 (12) | / | v3mysql |
File | Role | Description |
---|---|---|
create.php | Example | Example script |
DB.php | Class | Class source |
index.php | Aux. | Auxiliary script |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
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.