PHP code example of matasarei / strike-plagiarism-php

1. Go to this page and download the library: Download matasarei/strike-plagiarism-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

matasarei / strike-plagiarism-php example snippets


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']);
unit.xml.dist
unit.xml
unit.xml

composer