2017 © Pedro Peláez
 

library v3sdk

V3ctor WareHouse Php Sdk

image

yorch/v3sdk

V3ctor WareHouse Php Sdk

  • Sunday, March 6, 2016
  • by yorch
  • Repository
  • 2 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

V3ctor Sdk

Description

V3ctor WareHouse PHP Sdk, (*1)

Requirements

Developer Documentation

Execute phpdoc -d v3sdk/, (*2)

Unit Test

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

phpunit V3SdkTest.php, (*4)

Installation

Create file composer.json, (*5)

{
    "require": {
        "php": ">=5.4.0",
        "yorch/v3sdk" : "dev-master"
    }
}

Execute composer.phar install, (*6)

Example


// Get Instance $v3 = V3Sdk::getInstance('http://v3-yorch.rhcloud.com/', "lYltuNtYYbYRFC7QWwHn9b5aH2UJMk1234567890"); $data = array('DATA' => 111, 'NAME' => 'jorge'); // Insert new Object $result = $v3->newObject('v3', $data); var_dump($result); // Get Id $_id = V3Sdk::getId($result['_id']); // Get Id for MySQL Case //$_id = $result[0]->_id; // Update Object $data = array('DATA' => 111, 'NAME' => 'yorch'); $result = $v3->updateObject('v3', $_id, $data); // Find By Id $result = $v3->findObject('v3', $_id); var_dump($result); // Find By Pattern $result = $v3->query('v3', $data); var_dump($result); // Foreach Result foreach ($result as $item) { echo V3Sdk::getId($item->_id) . "\n"; } // Delete Object $result = $v3->deleteObject('v3', $_id);

Notes

V3Sdk PHP uses CURL for access to V3ctor WareHouse., (*7)

References

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

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

The Versions

06/03 2016

dev-master

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

V3ctor WareHouse Php Sdk

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

rest cloud warehouse