Downloads
Stars
Version
copyscape-laravel is a laravel 5 service provider to easily Copyscape premium API using php-libCopyScape
Add copyscape-laravel to your composer.json file:
"require": {
"marcosper/copyscape-laravel": "dev-master"
}
Use composer to install this package.
$ composer update
Register the service provider within the providers
array found in config/app.php
:
'providers' => [
// ...
Marcosper\CopyscapeLaravel\CopyscapeServiceProvider::class,
]
Add an alias within the aliases
array found in config/app.php
:
'aliases' => [
// ...
'Copyscape' => Marcosper\CopyscapeLaravel\Facades\Copyscape::class,
]
Publish configuration file using artisan command
$ php artisan vendor:publish --provider="Marcosper\CopyscapeLaravel\CopyscapeServiceProvider"
Then in .env
file add
COPYSCAPE_USER=copyscape_user
COPYSCAPE_KEY=copyscape_key
COPYSCAPE_SSL=false || true(for use systems cacert.pem) or route to use custom cacert.pem
COPYSCAPE_DEBUG=true
//Search text with 10 full comparisons
$text = "Search if this text is plaigarism";
Copyscape::searchInternetText($text,10);
Copyscape::getCredits();