{"id":36992654,"url":"https://github.com/grinchenkoedu/strike-plagiarism-php","last_synced_at":"2026-01-13T23:44:48.772Z","repository":{"id":62524855,"uuid":"256326075","full_name":"grinchenkoedu/strike-plagiarism-php","owner":"grinchenkoedu","description":"StrikePlagiarism API v2 client for PHP","archived":false,"fork":false,"pushed_at":"2023-05-14T16:55:19.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-11T03:55:27.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/matasarei/strike-plagiarism-php","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/grinchenkoedu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-16T20:46:31.000Z","updated_at":"2023-05-14T12:01:34.000Z","dependencies_parsed_at":"2022-11-02T14:15:29.636Z","dependency_job_id":null,"html_url":"https://github.com/grinchenkoedu/strike-plagiarism-php","commit_stats":null,"previous_names":["matasarei/strike-plagiarism-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/grinchenkoedu/strike-plagiarism-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grinchenkoedu%2Fstrike-plagiarism-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grinchenkoedu%2Fstrike-plagiarism-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grinchenkoedu%2Fstrike-plagiarism-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grinchenkoedu%2Fstrike-plagiarism-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grinchenkoedu","download_url":"https://codeload.github.com/grinchenkoedu/strike-plagiarism-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grinchenkoedu%2Fstrike-plagiarism-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-13T23:44:48.667Z","updated_at":"2026-01-13T23:44:48.754Z","avatar_url":"https://github.com/grinchenkoedu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# StrikePlagiarism API v2 client for PHP\nAn **unofficial** StrikePlagiarism API v2 client. \n\n## How to install\nThis is a [composer](https://getcomposer.org/doc/00-intro.md) package, to install simply run:\n```\ncomposer require matasarei/strike-plagiarism-php\n```\n\n## How to use\n```php\nuse Matasar\\StrikePlagiarism\\Client;\nuse Matasar\\StrikePlagiarism\\Document;\n\n$client = new Client('YOUR_API_KEY');\n\n$document = new Document(\n    'en', // language code (ISO 639-1)\n    'A test document', // title\n    'Yevhen Matasar', // author\n    'Yevhen Matasar', // coordinator\n    __DIR__ . '/test.pdf' // file uri\n);\n\n$response = $client-\u003eaddDocument($document);\n\n$report = $client-\u003egetReport($response['id']);\n```\n\nThe content of ```$report``` will be:\n```\n{\n  [\"html\"]=\u003e \"\u003chtml\u003e...original html report...\u003c/html\u003e\",\n  [\"name\"]=\u003e\n  string(15) \"A test document\"\n  [\"author\"]=\u003e\n  string(14) \"Yevhen Matasar\"\n  [\"coordinator\"]=\u003e\n  string(14) \"Yevhen Matasar\"\n  [\"similarity_1\"]=\u003e\n  float(100)\n  [\"similarity_2\"]=\u003e\n  float(0)\n  [\"phrase_length\"]=\u003e\n  int(25)\n  [\"words_count\"]=\u003e\n  int(20)\n  [\"chars_count\"]=\u003e\n  int(110)\n  [\"sources\"]=\u003e\n  array(1) {\n    [\"081e22a6707edb4e115f8bb033a73f9f\"]=\u003e\n    array(3) {\n      [\"url\"]=\u003e\n      string(59) \"https://s1.q4cdn.com/806093406/files/doc_downloads/test.pdf\"\n      [\"author\"]=\u003e\n      string(2) \" \"\n      [\"similar_words\"]=\u003e\n      int(20)\n    }\n  }\n}\n```\n\n## Tests\nTo run tests you need to:\n1. Get your own API key\n2. Copy ```phpunit.xml.dist``` to ```phpunit.xml```\n3. Edit ```phpunit.xml```, replace ```API_KEY``` with your own\n4. Run ```vendor/bin/phpunit``` (you need to run ```composer install``` first).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrinchenkoedu%2Fstrike-plagiarism-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrinchenkoedu%2Fstrike-plagiarism-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrinchenkoedu%2Fstrike-plagiarism-php/lists"}