PHP code example of c-alen / avahr-internal-api

1. Go to this page and download the library: Download c-alen/avahr-internal-api 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/ */

    

c-alen / avahr-internal-api example snippets


use Avahr\\InternalApi\\Client;

$client = new Client('http://127.0.0.1:5000', 'YOUR_API_KEY'); // api key optional

// Resume extract
$extracted = $client->resumeExtractFromUrl('https://example.com/resume.pdf');

// Resume parse
$parsed = $client->resumeParse($extracted['plain']);

// Batch parse
$batch = $client->resumeParseBatch([
    'Resume 1 text...',
    'Resume 2 text...'
]);

// Job generate
$job = $client->jobGenerate('Write a senior backend engineer JD...');

// Jobs score
$score = $client->jobsScore(
    ['title' => 'Backend Engineer', 'skills' => ['Python','SQL']],
    ['Experience' => '0-2=low, 3-5=mid, 6+=high', 'Skills' => 'match % of