No description or website provided.
PHP
Latest commit 094bcb7 Jan 10, 2017 @ballinette ballinette committed on GitHub Merge pull request #45 from kuzzleio/feature-44-http-route
Align routing with recent http route changes

README.md

Official Kuzzle PHP SDK

This SDK version is compatible with Kuzzle 1.0.0-RC6 and higher

About Kuzzle

For UI and linked objects developers, Kuzzle is an open-source solution that handles all the data management (CRUD, real-time storage, search, high-level features, etc).

You can access the Kuzzle repository on Github

SDK Documentation

The complete SDK documentation is available here

Installation

This SDK can be used in any project using composer. You can also find a bridge bundle for Symfony here

Composer

composer require kuzzleio/kuzzle-sdk

Basic usage

<?php

$kuzzle = new \Kuzzle\Kuzzle('localhost');
$collection = $kuzzle->dataCollectionFactory('mycollection', 'myindex');

$myDocument = [
  'name' => 'Rick Astley',
  'birthDate' => '1966/02/06',
  'mainActivity' => 'Singer',
  'website' => 'http://www.rickastley.co.uk',
  'comment' => 'Never gonna give you up, never gonna let you down'
];

try {
    $result = $collection->createDocument($myDocument);
    /*
    'result' is a \Kuzzle\Document object
    */
}
catch (Exception $error) {
    // handle error...
}

Symfony Bridge Bundle

You can find a Symfony bridge bundle for this module here

composer require kuzzleio/kuzzle-symfony-bridge

Running Tests

php ./vendor/bin/phpcs -p -n --standard=PSR2 src
php ./vendor/bin/phpunit

License

Apache 2