https://github.com/wisembly/semantria-php
Semantria PHP SDK
https://github.com/wisembly/semantria-php
Last synced: 9 months ago
JSON representation
Semantria PHP SDK
- Host: GitHub
- URL: https://github.com/wisembly/semantria-php
- Owner: Wisembly
- License: mit
- Created: 2015-04-23T10:53:00.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-25T07:53:12.000Z (almost 11 years ago)
- Last Synced: 2025-07-04T00:06:29.735Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 15
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# semantria-php
PHP SDK for Semantria API (http://semantria.com).
This SDK is NOT official, heavily inspired by [intercom-php](https://github.com/intercom/intercom-php)
and by [official Semantria PHP SDK](https://semantria.com/support/developer/docs/sdks)
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.
## Basic usage
Remember to include the Composer autoloader in your application:
```php
'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`
## Resources
Resources this API supports:
| Uri | Methods |
| ----------------------------------------- | --------- |
| https://api.semantria.com/configurations | GET |
| https://api.semantria.com/documents | GET POST |
## Licence
See LICENCE file.