trustami / trustami-ai
A connector for the Trustami.AI API.
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/trustami/trustami-ai
README
This repository aims to provide a simple and easy to use connector to the Trustami.AI API.
Installation
composer require trustami/trustami-ai
Usage
<?php require 'vendor/autoload.php'; use Trustami\TrustamiAi\LangDetector; use Trustami\TrustamiAi\Sentiment; use Trustami\TrustamiAi\Summarizer; $detector = new LangDetector("YOUR_TOKEN_HERE"); var_dump($detector->detect("This is a test text. It is used to test the Trustami.AI API.")); // string(2) "en"