2017 © Pedro Peláez
 

library php-client-api-v4

image

clusterpoint/php-client-api-v4

  • Friday, December 2, 2016
  • by normunds@clusterpoint.com
  • Repository
  • 7 Watchers
  • 2 Stars
  • 1,727 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 29 Versions
  • 1 % Grown

The README.md

Clusterpoint 4.x PHP Client API

License Total Downloads Latest Stable Version Latest Unstable Version, (*1)

Clusterpoint is a NoSQL document database known for its innovative Cloud-based distributed architecture, fast processing speed, and a flexible "pay as you use" pricing model. The database also features a developer-friendly API suitable for many popular modern programming languages, including PHP -- the specific API which is the focus of this document. Its full support for ACID-compliant transactions is a rarity among NoSQL databases, making the product useful for situations where data integrity is a must., (*2)

The recently introduced fourth edition of Clusterpoint added a unique JavaScript/SQL query language with computational capabilities,, allowing you to create powerful queries to store, retrieve, and transform data. The PHP API is flexible enough to allow you to use either interface methods or raw JS/SQL queries to accomplish your database tasks. The decision to use either approach ultimately depends on programmer preference and the individual development scenario., (*3)

Clusterpoint 4.x PHP Client API

, (*4)

Official Documentation

Documentation for the API can be found on the Clusterpoint website., (*5)

, (*6)

Requirements

PHP >= 5.4.0
cURL PHP Extension
Composer

, (*7)

Getting Started

  1. Sign up for Clusterpoint – Before you begin, you need to sign up for a Clusterpoint account and retrieve your Clusterpoint credentials.
  2. Minimum requirements – To run the PHP Client API, your system will need to meet the minimum requirements, including having **PHP >= 5.4.0 compiled with the cURL extension and cURL 4.0.2+.
  3. Install the APIComposer is the right way to install the PHP Client API.
    composer require clusterpoint/php-client-api-v4
  4. Publish config file - this is optional step, you can pass access points during workflow, but this might make your development process easier.
    php -r "copy('vendor/clusterpoint/php-client-api-v4/src/config.example', 'clusterpoint.php');"
  5. Access – You can pass the credentials inside on Clusterpoint\Client class construction, or use clusterpoint.php inside your project root folder, to manage your access points.

, (*8)

Quick Example

<?php
require 'vendor/autoload.php';
// or if you installed api without composer:
// require 'api_install_folder/Clusterpoint.php'

use Clusterpoint\Client;

//Initialize the service
$cp = new Client([
    'host' => 'https://api-eu.clusterpoint.com/v4',
    'account_id' => '1',
    'username' => 'root',
    'password' => 'password',
    'debug' => true,
]);

// Set the database.collection to initalize the query builder for it.
$bikes = $cp->database("shop.bikes");

// Build your query
$results = $bikes->where('color', 'red')
    ->where('availability', true)
    ->limit(5)
    ->groupBy('category')
    ->orderBy('price')
    ->select(['name', 'color', 'price', 'category'])
    ->get();

// Access your results
echo "First bike price: ".$results[0]->price;

, (*9)

Support, Feature Requests & Bug Reports

  • GitHub issues for bug reports and feature requests
  • StackOverflow to ask questions (please make sure to use the clusterpoint tag)
  • You can also send an e-mail to our support team at support@clusterpoint.com

, (*10)

License

Clusterpoint 4.x PHP Client API is open-sourced software licensed under the MIT license, (*11)

The Versions

02/12 2016

dev-development

dev-development https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

02/12 2016

dev-master

9999999-dev https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

17/11 2016

4.0.28

4.0.28.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

16/11 2016

4.0.27

4.0.27.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

16/11 2016

4.0.26

4.0.26.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

08/11 2016

4.0.25

4.0.25.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

07/11 2016

4.0.24

4.0.24.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

27/10 2016

4.0.23

4.0.23.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

27/10 2016

4.0.22

4.0.22.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

14/10 2016

4.0.21

4.0.21.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

03/10 2016

4.0.20

4.0.20.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

22/09 2016

4.0.19

4.0.19.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

21/09 2016

4.0.18

4.0.18.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

29/08 2016

4.0.17

4.0.17.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

22/08 2016

4.0.16

4.0.16.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

18/08 2016

4.0.15

4.0.15.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

17/08 2016

4.0.14

4.0.14.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

11/08 2016

4.0.13

4.0.13.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

28/07 2016

4.0.12

4.0.12.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

21/07 2016

4.0.11

4.0.11.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

03/05 2016

4.0.10

4.0.10.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

03/05 2016

4.0.9

4.0.9.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

03/05 2016

4.0.8

4.0.8.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

27/04 2016

4.0.7

4.0.7.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

12/04 2016

4.0.6

4.0.6.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

24/03 2016

4.0.5

4.0.5.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

24/03 2016

4.0.4

4.0.4.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

24/03 2016

4.0.3

4.0.3.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql

18/02 2016

4.0.2

4.0.2.0 https://www.clusterpoint.com/

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-curl *

 

The Development Requires

by Clusterpoint
by Marks Gerasimovs

database api php nosql clusterpoint jssql