Docs Navigation

PHP

You can use fuzzy.ai from your PHP project using the Open Source library.

Requirements

PHP 5.3.3 or later with the cURL extension.

Installation

You can install the library via Composer:

composer require fuzzy-ai/sdk

To load the library, use Composer's autoload:

require_once('vendor/autoload.php');

Usage

All API calls require an API key from https://fuzzy.ai/.

$client = new FuzzyAi\Client('YourAPIKey');

list($result, $evalID) = $client->evaluate('YourAgentID', array('input1' => 42));

Examples

The examples directory has some examples of using the library.