unicheck/unicheck-corp-php-sdk

An SDK built to facilitate application development for Unicheck Corporate API 2.0+ (ex Unplag)

v1.0.0 2017-06-16 09:28 UTC

This package is not auto-updated.

Last update: 2024-04-14 01:51:52 UTC


README

Packagist

PHP SDK for Unicheck.com corporate API 2.0+.
SDK implements API methods in PHP OOP way.

Installation

Using composer

#Require Unicheck sdk
php composer.phar require unicheck/unicheck-corp-php-sdk

Usage

//create Unicheck client
$unicheck = new Unicheck('YOUR-API-KEY', 'YOUR-API-SECRET');

//upload file
$file = $unicheck->fileUpload(PayloadFile::bin($testText), 'txt');

//start check
$checkParam = new CheckParam($file['id']);
$checkParam->setType(CheckParam::TYPE_WEB);

$check = $unicheck->checkCreate($checkParam);

echo 'Check started!' . PHP_EOL;
var_dump($check);

Help and docs