Following are my code that return expiry time of token and some other login info.

include_once('vendor/copyleaks/php-plagiarism-checker/autoload.php');
use Copyleaks\Copyleaks;
$copyleaks = new Copyleaks();
$loginResult = $copyleaks->login('[email protected]','My-Api-Key Here');
echo json_encode($loginResult);
1

There are 1 best solutions below

1
On BEST ANSWER

It depends on what are you trying to scan.

You can follow the example found at:

https://github.com/Copyleaks/PHP-Plagiarism-Checker/blob/master/demo/demo.php

and the Copyleaks API documentation:

https://api.copyleaks.com/documentation/v3