Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 61 | All time: 10,477 This week: 524 |
Version | License | PHP version | Categories | |||
v3sdk 1.0 | Custom (specified... | 5 | PHP 5, Web services |
Description | Author | |||||||||||||||||||||||
This class can store and retrieve objects in V3ctor WareHouse. |
|
V3ctor WareHouse PHP Sdk
Execute phpdoc -d v3sdk/
For run Unit Test, complete information connection and execute the next commands: > phpunit V3SdkTest.php
Create file composer.json
{
"require": {
"php": ">=5.4.0",
"yorch/v3sdk" : "dev-master"
}
}
Execute composer.phar install
// 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);
V3Sdk PHP uses CURL for access to V3ctor WareHouse.
http://es.wikipedia.org/wiki/Singleton
P.D. Let's go play !!!
Files (5) |
File | Role | Description |
---|---|---|
composer.json | Data | Auxiliary data |
LICENSE | Lic. | License |
README.md | Doc. | Documentation |
V3Sdk.class.php | Class | Class source |
V3SdkTest.php | Test | Unit test 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.