2017 © Pedro Peláez
 

library semantria-php

Semantria API client built on top of Guzzle 3

image

wisembly/semantria-php

Semantria API client built on top of Guzzle 3

  • Thursday, June 25, 2015
  • by guillaumepotier
  • Repository
  • 13 Watchers
  • 0 Stars
  • 5,630 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

semantria-php

PHP SDK for Semantria API (http://semantria.com)., (*1)

This SDK is NOT official, heavily inspired by intercom-php and by official Semantria PHP SDK, (*2)

We developped and maintain this library for our own usage and released it open source (see LICENCE.md) if it could help. Semantria and its API belongs to Semantria., (*3)

Basic usage

Remember to include the Composer autoloader in your application:, (*4)

<?php
require_once 'vendor/autoload.php';

// Application code...

Configure your access credentials when creating a client:, (*5)

<?php
use Semantria\SemantriaAuthClient;

$semantria = SemantriaAuthClient::factory(array(
    'consumer_key'      => 'my-consumer-key',
    'consumer_secret'   => 'my-consumer-secret',
    'application_name'  => 'my-app',
    'use_compression'   => false
));

$semantria->addDocument([
    'id'    => 'foo',
    'text'  => 'This method queues document onto the server for analysis. Queued document analyzes individually and will have its own set of results. If unique configuration ID provided, Semantria uses settings of that configuration during analysis, in opposite the primary configuration uses. Document IDs are unique in scope of configuration. If the same ID appears twice, Semantria overrides existing document with the new Data.'
]);

$semantria->getDocument(['document_id' => 'foo']);

Testing

Run bin/phpunit, (*6)

Resources

Resources this API supports:, (*7)

Uri Methods
https://api.semantria.com/configurations GET
https://api.semantria.com/documents GET POST

Licence

See LICENCE file., (*8)

The Versions

25/06 2015

dev-ignore-local-files

dev-ignore-local-files

Semantria API client built on top of Guzzle 3

  Sources   Download

MIT

The Requires

 

The Development Requires

api guzzle semantic semantria semantria.com

25/06 2015

dev-remove-composer-lock

dev-remove-composer-lock

Semantria API client built on top of Guzzle 3

  Sources   Download

MIT

The Requires

 

The Development Requires

api guzzle semantic semantria semantria.com

28/04 2015

dev-master

9999999-dev

Semantria API client built on top of Guzzle 3

  Sources   Download

MIT

The Requires

 

The Development Requires

api guzzle semantic semantria semantria.com

28/04 2015

0.0.1

0.0.1.0

Semantria API client built on top of Guzzle 3

  Sources   Download

MIT

The Requires

 

The Development Requires

api guzzle semantic semantria semantria.com