{"id":21070631,"url":"https://github.com/wisembly/semantria-php","last_synced_at":"2025-07-04T00:06:31.319Z","repository":{"id":30892902,"uuid":"34450640","full_name":"Wisembly/semantria-php","owner":"Wisembly","description":"Semantria PHP SDK","archived":false,"fork":false,"pushed_at":"2015-06-25T07:53:12.000Z","size":205,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-07-04T00:06:29.735Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wisembly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-23T10:53:00.000Z","updated_at":"2015-04-28T07:23:35.000Z","dependencies_parsed_at":"2022-08-24T14:20:43.039Z","dependency_job_id":null,"html_url":"https://github.com/Wisembly/semantria-php","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Wisembly/semantria-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Fsemantria-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Fsemantria-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Fsemantria-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Fsemantria-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wisembly","download_url":"https://codeload.github.com/Wisembly/semantria-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wisembly%2Fsemantria-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263421933,"owners_count":23464049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T18:47:39.085Z","updated_at":"2025-07-04T00:06:30.015Z","avatar_url":"https://github.com/Wisembly.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# semantria-php\n\nPHP SDK for Semantria API (http://semantria.com).\n\nThis SDK is NOT official, heavily inspired by [intercom-php](https://github.com/intercom/intercom-php)\nand by [official Semantria PHP SDK](https://semantria.com/support/developer/docs/sdks)\n\nWe developped and maintain this library for our own usage and released it open\nsource (see LICENCE.md) if it could help.\nSemantria and its API belongs to Semantria.\n\n## Basic usage\n\nRemember to include the Composer autoloader in your application:\n\n```php\n\u003c?php\nrequire_once 'vendor/autoload.php';\n\n// Application code...\n```\n\nConfigure your access credentials when creating a client:\n\n```php\n\u003c?php\nuse Semantria\\SemantriaAuthClient;\n\n$semantria = SemantriaAuthClient::factory(array(\n    'consumer_key'      =\u003e 'my-consumer-key',\n    'consumer_secret'   =\u003e 'my-consumer-secret',\n    'application_name'  =\u003e 'my-app',\n    'use_compression'   =\u003e false\n));\n\n$semantria-\u003eaddDocument([\n    'id'    =\u003e 'foo',\n    'text'  =\u003e '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.'\n]);\n\n$semantria-\u003egetDocument(['document_id' =\u003e 'foo']);\n```\n\n## Testing\n\nRun `bin/phpunit`\n\n\n## Resources\n\nResources this API supports:\n\n| Uri                                       | Methods   |\n| ----------------------------------------- | --------- |\n| https://api.semantria.com/configurations  | GET       |\n| https://api.semantria.com/documents       | GET POST  |\n\n## Licence\n\nSee LICENCE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisembly%2Fsemantria-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisembly%2Fsemantria-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisembly%2Fsemantria-php/lists"}