PHP code example of sharpapi / laravel-resume-job-match-score
1. Go to this page and download the library: Download sharpapi/laravel-resume-job-match-score 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/ */
sharpapi / laravel-resume-job-match-score example snippets
use SharpAPI\ResumeMatchScore\ResumeMatchScoreService;
use GuzzleHttp\Exception\GuzzleException;
$resumePath = storage_path('resume.pdf'); // make sure this file exists
$jobDescription = 'We are hiring a PHP Developer with Laravel experience…';
$language = 'English';
$service = new ResumeMatchScoreService();
try {
$statusUrl = $service->matchResumeToJob(
$resumePath,
$jobDescription,
$language // optional – English is default
);
$result = $service->fetchResults($statusUrl)->toArray();
print_r($result);
} catch (GuzzleException $e) {
// Handle SharpAPI or network errors
echo $e->getMessage();
}
bash
php artisan vendor:publish --tag=sharpapi-resume-job-match-score