PHP code example of marcosper / copyscape-laravel

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

    

marcosper / copyscape-laravel example snippets


'providers' => [
	// ...
	
	Marcosper\CopyscapeLaravel\CopyscapeServiceProvider::class,
]

'aliases' => [
	// ...
	
	'Copyscape'     => Marcosper\CopyscapeLaravel\Facades\Copyscape::class,
]

//Search text with 10 full comparisons
$text = "Search if this text is plaigarism";
Copyscape::searchInternetText($text,10);

Copyscape::getCredits();
config/app.php
config/app.php

$ php artisan vendor:publish --provider="Marcosper\CopyscapeLaravel\CopyscapeServiceProvider"