项目作者: Copyleaks

项目描述 :
Copyleaks Plagiarism Checker - PHP SDK.
高级语言: PHP
项目地址: git://github.com/Copyleaks/PHP-Plagiarism-Checker.git
创建时间: 2016-05-29T15:18:20Z
项目社区:https://github.com/Copyleaks/PHP-Plagiarism-Checker

开源协议:MIT License

下载


Copyleaks PHP SDK

Copyleaks SDK is a simple framework that allows you to scan text for plagiarism and detect content distribution online, using the Copyleaks plagiarism checker cloud.

Using Copyleaks SDK you can check for plagiarism in:

  • Online content and webpages
  • Local and cloud files (see supported files)
  • Free text
  • OCR (Optical Character Recognition) - scanning pictures with textual content (see supported files)

Installation

Install using Packagist

  1. composer require copyleaks/php-plagiarism-checker

Register and Get Your API Key

To use the Copyleaks API you need to first be a registered user. The registration to Copyleaks takes a minute and is free of charge. Signup and make sure to confirm your account.

As a signed user you can generate your personal API key. Do so on your dashboard home under ‘API Access Credentials’.

For more information check out our API guide.

Usage

  1. include_once('vendor/copyleaks/php-plagiarism-checker/autoload.php');
  2. use Copyleaks\Copyleaks;
  3. $copyleaks = new Copyleaks();
  4. $loginResult = $copyleaks->login(<your email>,<your api key>);
  5. echo json_encode($loginResult);
  • (Option) To change the Identity server URI (default:”https://id.copyleaks.com“):
    1. CopyleaksConfig::SET_IDENTITY_SERVER_URI("<your identity server URI>");
  • (Option) To change the API server URI (default:”https://api.copyleaks.com“):
    1. CopyleaksConfig::SET_API_SERVER_URI("<your API server URI>");

Demo

See demo.php under demo folder for an example.

Read More