copyleaks/php-plagiarism-checker

Copyleaks detects online plagiarism and checks content distribution. Use Copyleaks to find out if textual content is original and where it has been used before. This package shows how to integrate with the Copyleaks cloud to search for copyright infringement.

4.0.1 2023-06-08 06:48 UTC

README

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

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

include_once('vendor/copyleaks/php-plagiarism-checker/autoload.php');
use Copyleaks\Copyleaks;

$copyleaks = new Copyleaks();
$loginResult = $copyleaks->login(<your email>,<your api key>);
echo json_encode($loginResult);
CopyleaksConfig::SET_IDENTITY_SERVER_URI("<your identity server URI>"); 
CopyleaksConfig::SET_API_SERVER_URI("<your API server URI>");

Demo

See demo.php under demo folder for an example.

Read More