PHP code example of madnesscode / copyscape

1. Go to this page and download the library: Download madnesscode/copyscape 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/ */

    

madnesscode / copyscape example snippets


use MadnessCODE\Copyscape\Api;

$copyscape = new Api('my_username', 'my_api_key');

$copyscape->setTestMode();

$result = $copyscape->getBalance();
print_r($result);

$result = $copyscape->urlSearch('http://www.copyscape.com/example.html');
print_r($result);

$result = $copyscape->textSearch('Lorem ipsum dolor sit amet, consectetur adipiscing elit.');
print_r($result);