2017 © Pedro Peláez
 

library akiban-php

REST Service Client for Akiban

image

akiban/akiban-php

REST Service Client for Akiban

  • Thursday, April 4, 2013
  • by posulliv
  • Repository
  • 1 Watchers
  • 5 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Akiban Web Service Client for PHP

Akiban Server has a REST API. This client allows easy interaction with this API., (*1)

Installation

Create composer.json file in your project root:, (*2)

{
    "require": {
        "akiban/akiban-php": "dev-master"
    }
}

Then download composer.phar and run the install command:, (*3)

curl -s http://getcomposer.org/installer | php && ./composer.phar install

Quick Examples

<?php

require 'vendor/autoload.php';

use Akiban\AkibanClient;

// Instantiate an Akiban client
$client = AkibanClient::factory(array('scheme' => 'https',
                                      'username' => 'user',
                                      'password' => 'pass',
                                      'hostname' => 'localhost'));

// Retrieve an entity named 'hopes' with an ID of 3
// returns a JSON document representing the entity
echo $client->getEntity('hopes', 3);

// Execute a SQL query
// results are returned in JSON format
echo $client->executeSqlQuery('select * from hopes');

// Execute multiple SQL statements in 1 transaction
// results for each statement are returned as a field
// in a JSON document
$queries = array(
  'select max(id) from hopes',
  'select * from hopes'
);
echo $client->executeMultipleSqlQueries($queries);

The Versions

04/04 2013

dev-master

9999999-dev http://github.com/akiban/php-akiban

REST Service Client for Akiban

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

database akiban