2017 © Pedro Peláez
 

library v3wh

V3ctor WareHouse Core for MongoDb and MySQL

image

yorch/v3wh

V3ctor WareHouse Core for MongoDb and MySQL

  • Monday, February 1, 2016
  • by yorch
  • Repository
  • 2 Watchers
  • 0 Stars
  • 54 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

V3 WareHouse Core

Description

V3ctor WareHouse Core for MongoDb and MySQL., (*1)

Requirements

Developer Documentation

Execute phpdoc -d v3wh/, (*2)

Unit Test

For run Unit Test, complete information connection and execute the next commands:, (*3)

phpunit V3WareHouseTest.php, (*4)

Installation

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)

Example


//$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);

Notes

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)

References

http://es.wikipedia.org/wiki/Singleton, (*8)

P.D. Let's go play !!!, (*9)

The Versions

01/02 2016

dev-master

9999999-dev https://github.com/yorch81/v3wh

V3ctor WareHouse Core for MongoDb and MySQL

  Sources   Download

Apache-2.0

The Requires

 

mongodb mysql warehouse