PHP code example of vyalovalexander / antiplagiat-text-checker

1. Go to this page and download the library: Download vyalovalexander/antiplagiat-text-checker 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/ */

    

vyalovalexander / antiplagiat-text-checker example snippets


     use VyalovAlexander\AntiplagiatTextChecker\Checker;
    
    // Loading enviroment variables
    $dotenv = new Dotenv\Dotenv(Path/to/your/.env/file);
    $dotenv->load();
    
    $checker->addDriver('ContentWatch', \VyalovAlexander\AntiplagiatTextChecker\Drivers\ContentWatch\Driver::class)
        ->addDriver('Copyscape', \VyalovAlexander\AntiplagiatTextChecker\Drivers\Copyscape\Driver::class)
        ->addDriver('TextRU', \VyalovAlexander\AntiplagiatTextChecker\Drivers\TextRU\Driver::class);
    
    $result = $checker->useDriver('ContentWatch')->check('Your text for check');
    
    echo $result->getResult(); // uniqueness rate
    echo $result->getError(); // if !$result->isSuccess() show error