PHPackages                             matasarei/strike-plagiarism-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. matasarei/strike-plagiarism-php

ActiveLibrary[API Development](/categories/api)

matasarei/strike-plagiarism-php
===============================

StrikePlagiarism API for PHP

1.0.0(2y ago)06MITPHPPHP &gt;=7.2CI failing

Since May 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/grinchenkoedu/strike-plagiarism-php)[ Packagist](https://packagist.org/packages/matasarei/strike-plagiarism-php)[ RSS](/packages/matasarei-strike-plagiarism-php/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

StrikePlagiarism API v2 client for PHP
======================================

[](#strikeplagiarism-api-v2-client-for-php)

An **unofficial** StrikePlagiarism API v2 client.

How to install
--------------

[](#how-to-install)

This is a [composer](https://getcomposer.org/doc/00-intro.md) package, to install simply run:

```
composer require matasarei/strike-plagiarism-php

```

How to use
----------

[](#how-to-use)

```
use Matasar\StrikePlagiarism\Client;
use Matasar\StrikePlagiarism\Document;

$client = new Client('YOUR_API_KEY');

$document = new Document(
    'en', // language code (ISO 639-1)
    'A test document', // title
    'Yevhen Matasar', // author
    'Yevhen Matasar', // coordinator
    __DIR__ . '/test.pdf' // file uri
);

$response = $client->addDocument($document);

$report = $client->getReport($response['id']);
```

The content of `$report` will be:

```
{
  ["html"]=> "...original html report...",
  ["name"]=>
  string(15) "A test document"
  ["author"]=>
  string(14) "Yevhen Matasar"
  ["coordinator"]=>
  string(14) "Yevhen Matasar"
  ["similarity_1"]=>
  float(100)
  ["similarity_2"]=>
  float(0)
  ["phrase_length"]=>
  int(25)
  ["words_count"]=>
  int(20)
  ["chars_count"]=>
  int(110)
  ["sources"]=>
  array(1) {
    ["081e22a6707edb4e115f8bb033a73f9f"]=>
    array(3) {
      ["url"]=>
      string(59) "https://s1.q4cdn.com/806093406/files/doc_downloads/test.pdf"
      ["author"]=>
      string(2) " "
      ["similar_words"]=>
      int(20)
    }
  }
}

```

Tests
-----

[](#tests)

To run tests you need to:

1. Get your own API key
2. Copy `phpunit.xml.dist` to `phpunit.xml`
3. Edit `phpunit.xml`, replace `API_KEY` with your own
4. Run `vendor/bin/phpunit` (you need to run `composer install` first).

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44632227efd38dd8598ceb71812e223865e994f1f35f027b423469133fb29d6b?d=identicon)[matasarei](/maintainers/matasarei)

---

Top Contributors

[![matasarei](https://avatars.githubusercontent.com/u/6638367?v=4)](https://github.com/matasarei "matasarei (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/matasarei-strike-plagiarism-php/health.svg)

```
[![Health](https://phpackages.com/badges/matasarei-strike-plagiarism-php/health.svg)](https://phpackages.com/packages/matasarei-strike-plagiarism-php)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
