|
1 | | -# laravel-resume-job-match-score |
2 | | -Resume/CV Job Match Score - Smart AI scoring for CV-to-job compatibility |
| 1 | + |
| 2 | + |
| 3 | +# Resume/CV & Job Description Compatibility Scoring API for Laravel |
| 4 | + |
| 5 | +## 🎯 Instantly evaluate how well a candidate's resume aligns with your job descriptions — powered by SharpAPI AI. |
| 6 | + |
| 7 | +[](https://packagist.org/packages/sharpapi/laravel-resume-job-match-score) |
| 8 | +[](https://packagist.org/packages/sharpapi/laravel-resume-job-match-score) |
| 9 | + |
| 10 | +Check the full documentation on the [Resume/CV Job Match Scoring API](https://sharpapi.com/en/catalog/ai/hr-tech/resume-cv-job-match-score) page. |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +## Requirements |
| 15 | + |
| 16 | +- PHP >= 8.1 |
| 17 | +- Laravel >= 9.0 |
| 18 | + |
| 19 | +--- |
| 20 | + |
| 21 | +## Installation |
| 22 | + |
| 23 | +```bash |
| 24 | +composer require sharpapi/laravel-resume-job-match-score --prefer-dist |
| 25 | + |
| 26 | +``` |
| 27 | + |
| 28 | +Then, in your `.env` file: |
| 29 | + |
| 30 | +```bash |
| 31 | +SHARP_API_KEY=your_api_key_here |
| 32 | +``` |
| 33 | + |
| 34 | +Optionally, publish the config if you want to tweak the default settings: |
| 35 | + |
| 36 | +```bash |
| 37 | +php artisan vendor:publish --tag=sharpapi-resume-job-match-score |
| 38 | +``` |
| 39 | + |
| 40 | +--- |
| 41 | + |
| 42 | +## What it does |
| 43 | + |
| 44 | +This package sends a resume file and a job description to the SharpAPI AI endpoint and returns a structured JSON scoring output based on 20+ compatibility factors: |
| 45 | + |
| 46 | +- Skills match |
| 47 | +- Experience and industry relevance |
| 48 | +- Education and certifications |
| 49 | +- Soft skills, language, cultural fit |
| 50 | +- Stability score and more |
| 51 | + |
| 52 | +Perfect for recruiters, ATS platforms, and job-matching tools. |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +## Usage |
| 57 | + |
| 58 | +Inject the `ResumeMatchScoreService` into your controller or command and call `matchResumeToJob()`: |
| 59 | + |
| 60 | +```php |
| 61 | +use SharpAPI\ResumeMatchScore\ResumeMatchScoreService; |
| 62 | +use GuzzleHttp\Exception\GuzzleException; |
| 63 | + |
| 64 | +$resumePath = storage_path('resume.pdf'); // make sure this file exists |
| 65 | +$jobDescription = 'We are hiring a PHP Developer with Laravel experience…'; |
| 66 | +$language = 'English'; |
| 67 | + |
| 68 | +$service = new ResumeMatchScoreService(); |
| 69 | + |
| 70 | +try { |
| 71 | + $statusUrl = $service->matchResumeToJob( |
| 72 | + $resumePath, |
| 73 | + $jobDescription, |
| 74 | + $language // optional – English is default |
| 75 | + ); |
| 76 | + |
| 77 | + $result = $service->fetchResults($statusUrl)->toArray(); |
| 78 | + print_r($result); |
| 79 | +} catch (GuzzleException $e) { |
| 80 | + // Handle SharpAPI or network errors |
| 81 | + echo $e->getMessage(); |
| 82 | +} |
| 83 | +``` |
| 84 | + |
| 85 | +### Laravel Artisan Command Example |
| 86 | + |
| 87 | +```bash |
| 88 | +php artisan sharpapi:test-resume-match \ |
| 89 | + --file=storage/resume.pdf \ |
| 90 | + --description="Looking for a full-stack developer skilled in React and Node.js" \ |
| 91 | + --language=English |
| 92 | +``` |
| 93 | + |
| 94 | +--- |
| 95 | + |
| 96 | +## Example Response |
| 97 | + |
| 98 | +```json |
| 99 | +{ |
| 100 | + "data": { |
| 101 | + "type": "api_job_result", |
| 102 | + "id": "5a113c4d-38e9-43e5-80f4-ec3fdea3420e", |
| 103 | + "attributes": { |
| 104 | + "status": "success", |
| 105 | + "type": "hr_resume_job_match_score", |
| 106 | + "result": { |
| 107 | + "match_scores": { |
| 108 | + "overall_match": 88, |
| 109 | + "skills_match": 92, |
| 110 | + "experience_match": 85, |
| 111 | + "education_match": 80, |
| 112 | + "certifications_match": 70, |
| 113 | + "job_title_relevance": 84, |
| 114 | + "industry_experience_match": 75, |
| 115 | + "project_experience_match": 78, |
| 116 | + "technical_stack_match": 90, |
| 117 | + "soft_skills_match": 88, |
| 118 | + "methodologies_match": 82, |
| 119 | + "language_proficiency_match": 95, |
| 120 | + "location_preference_match": 100, |
| 121 | + "remote_work_flexibility": 90, |
| 122 | + "certifications_training_relevance": 70, |
| 123 | + "years_experience_weighting": 80, |
| 124 | + "recent_role_relevance": 83, |
| 125 | + "management_experience_match": 60, |
| 126 | + "cultural_fit_potential": 85, |
| 127 | + "stability_score": 77 |
| 128 | + }, |
| 129 | + "explanations": { |
| 130 | + "skills_match": "Candidate lists React, Node.js, and JavaScript with strong proficiency.", |
| 131 | + "experience_match": "5+ years experience in a similar role within a tech startup.", |
| 132 | + "education_match": "Bachelor's degree in Computer Science aligns with job requirements.", |
| 133 | + "certifications_match": "Has partial certification coverage (e.g., Scrum Master).", |
| 134 | + "language_proficiency_match": "Fluent in English as required." |
| 135 | + } |
| 136 | + } |
| 137 | + } |
| 138 | + } |
| 139 | +} |
| 140 | + |
| 141 | +``` |
| 142 | + |
| 143 | +--- |
| 144 | + |
| 145 | +### Do you think our API is missing some obvious functionality? |
| 146 | + |
| 147 | +- [Please let us know via GitHub »](https://github.com/sharpapi/laravel-resume-job-match-score/issues) |
| 148 | +- or [Join our Telegram Group »](https://t.me/sharpapi_community) |
| 149 | + |
| 150 | +--- |
| 151 | + |
| 152 | +## Changelog |
| 153 | + |
| 154 | +Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. |
| 155 | + |
| 156 | +--- |
| 157 | + |
| 158 | +## Credits |
| 159 | + |
| 160 | +- [A2Z WEB LTD](https://github.com/a2zwebltd) |
| 161 | +- [Dawid Makowski](https://github.com/makowskid) |
| 162 | +- Boost your [Laravel AI](https://sharpapi.com/) capabilities! |
| 163 | + |
| 164 | +--- |
| 165 | + |
| 166 | +## License |
| 167 | + |
| 168 | +[](LICENSE.md) |
| 169 | + |
| 170 | +The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
| 171 | + |
| 172 | + |
| 173 | +--- |
| 174 | +## Social Media |
| 175 | + |
| 176 | +🚀 For the latest news, tutorials, and case studies, don't forget to follow us on: |
| 177 | +- [SharpAPI X (formerly Twitter)](https://x.com/SharpAPI) |
| 178 | +- [SharpAPI YouTube](https://www.youtube.com/@SharpAPI) |
| 179 | +- [SharpAPI Vimeo](https://vimeo.com/SharpAPI) |
| 180 | +- [SharpAPI LinkedIn](https://www.linkedin.com/products/a2z-web-ltd-sharpapicom-automate-with-aipowered-api/) |
| 181 | +- [SharpAPI Facebook](https://www.facebook.com/profile.php?id=61554115896974) |
0 commit comments