marcosper/copyscape-laravel
Composer 安装命令:
composer require marcosper/copyscape-laravel
包简介
Copyscape service provider for Laravel 5
README 文档
README
Introduction
copyscape-laravel is a laravel 5 service provider to easily Copyscape premium API using php-libCopyScape
Installation
Add copyscape-laravel to your composer.json file:
"require": {
"marcosper/copyscape-laravel": "dev-master"
}
Use composer to install this package.
$ composer update
Registering the Package
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, ]
Configuration
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
Usage
Search for text on internet:
//Search text with 10 full comparisons $text = "Search if this text is plaigarism"; Copyscape::searchInternetText($text,10);
Get credits of account:
Copyscape::getCredits();
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-20