1. Go to this page and download the library: Download aquidify/sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aquidify / sdk example snippets
$aq = new Aquidify\Client(); // AQUIDIFY_API_KEY
$r = $aq->interpret('hiring.candidate', 'Iščem delo v skladišču v Ljubljani, brez nočnih.', 'sl-SI');
$r['interpretation']['intents'][0]['roles'][0]['value']; // "warehouse"
$r['clarification']; // null
use Aquidify\Interpreter;
use Aquidify\Laravel\Facades\Aquidify;
// inject…
public function __construct(private Interpreter $aquidify) {}
$r = $this->aquidify->interpret('hiring.candidate', $text, app()->getLocale());
// …or use the facade
$r = Aquidify::interpret('hiring.candidate', $text, 'sl');