PHP code example of eoko / text-kernel
1. Go to this page and download the library: Download eoko/text-kernel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eoko / text-kernel example snippets
$api = $this->get('textkernel.api.servicebox');
try {
/** @param \Eoko\TextKernel\Model\CvModel $cv */
$cv = $api->extractFromFile($filepath);
// or
$cv = $api->extract($cvBuffer);
} catch(\Exception $e) {
//handle errors
}
use Eoko\TextKernel\Factory\TextKernelFactory;
$account = 'change_me';
$username = 'change_me';
$password = '########';
$factory = new TextKernelFactory();
$api = $factory->createSourceboxApi($account, $username, $password);
try {
/** @param \Eoko\TextKernel\Model\CvModel $cv */
$cv = $api->extractFromFile($filepath);
// or
$cv = $api->extract($cvBuffer);
} catch(\Exception $e) {
//handle errors
}