2017 © Pedro Peláez
 

library monkeylearn-api

MonkeyLearn API v2 client

image

artstorm/monkeylearn-api

MonkeyLearn API v2 client

  • Saturday, April 9, 2016
  • by artstorm
  • Repository
  • 1 Watchers
  • 2 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

MonkeyLearn API PHP Client

Build Status Scrutinizer Code Quality Scrutinizer Coverage Status StyleCI, (*1)

An easy to use client to consume MonkeyLearn API v2 with PHP., (*2)

Install

Via Composer, (*3)

``` bash $ composer require artstorm/monkeylearn-api, (*4)


## Requirements * PHP >= 5.4.0. * PHP Curl. ## Basic usage of MonkeyLearn API PHP Client ``` php $token = 'monkeylearn-api-token'; $client = new Artstorm\MonkeyLearn\Client($token); $textToClassify = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.'; $module = 'module_id'; $response = $client->classification->classify($textToClassify, $module); print_r($response->result());

Debug and Sandbox

MonkeyLearn has a Sandbox mode that can be used for custom modules. There is also an option to include debug data in the responses. These options can be enabled with the methods Client::sandbox() and Client::debug(). The methods are chainable., (*5)

``` php $response = $client->sandbox()->classification->classify($text, $module); $response = $client->debug()->classification->classify($text, $module); $response = $client->sandbox()->debug()->classification->classify($text, $module);, (*6)



### Query Limits To find out current query limits with MonkeyLearn API, that information is available in the response object. ``` php $response = $client->classification->classify($text, $module); $limits = $response->limits();

The Versions

09/04 2016

dev-develop

dev-develop https://github.com/artstorm/monkeylearn-api-php

MonkeyLearn API v2 client

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

api monkeylearn

02/04 2016

dev-master

9999999-dev https://github.com/artstorm/monkeylearn-api-php

MonkeyLearn API v2 client

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

api monkeylearn

02/04 2016

0.5

0.5.0.0 https://github.com/artstorm/monkeylearn-api-php

MonkeyLearn API v2 client

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

api monkeylearn

24/02 2016

0.1

0.1.0.0 https://github.com/artstorm/monkeylearn-api-php

MonkeyLearn API v2 client

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

The Development Requires

api monkeylearn