sharpapi/laravel-resume-job-match-score
Composer 安装命令:
composer require sharpapi/laravel-resume-job-match-score
包简介
AI Resume & Job Description Matching for Laravel powered by SharpAPI.com
关键字:
README 文档
README
Laravel Resume/CV and Job Description Match Score
🎯 Instantly evaluate how well a candidate's resume aligns with your job descriptions — powered by SharpAPI AI.
Supported resume files - 11 file formats: DOC, DOCX, TXT, RTF, PDF, JPG, JPEG, JPE, PNG, TIFF, TIF
And yes - it handles those flattened PDFs where the entire resume is just images instead of text.
Check the full documentation on the Resume/CV Job Match Scoring API page.
Requirements
- PHP >= 8.1
- Laravel >= 10.48.29
Installation
composer require sharpapi/laravel-resume-job-match-score --prefer-dist
Then, in your .env file:
SHARP_API_KEY=your_api_key_here
Optionally, publish the config if you want to tweak the default settings:
php artisan vendor:publish --tag=sharpapi-resume-job-match-score
What it does
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:
- Skills match
- Experience and industry relevance
- Education and certifications
- Soft skills, language, cultural fit
- Stability score and more
Perfect for recruiters, ATS platforms, and job-matching tools.
Usage
Inject the ResumeMatchScoreService into your controller or command and call matchResumeToJob():
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'; // Optional scoring directives (max 5000 chars). See "Context directives" below. $context = <<<CTX EMPHASIZE: backend scalability DEEMPHASIZE: frontend frameworks CREDIT: AWS CTX; $service = new ResumeMatchScoreService(); try { $statusUrl = $service->matchResumeToJob( $resumePath, $jobDescription, $language, // optional – English is default $context // optional – pass null to omit ); $result = $service->fetchResults($statusUrl)->toArray(); print_r($result); } catch (GuzzleException $e) { // Handle SharpAPI or network errors echo $e->getMessage(); }
Context directives
The optional $context parameter lets you steer the scoring engine using a formal directive contract. The engine recognises three directive shapes, which can be mixed freely in a single string:
| Directive | Effect |
|---|---|
EMPHASIZE: <topic> |
Increases the matching metric weight by one step |
DEEMPHASIZE: <topic> |
Decreases the matching metric weight by one step |
CREDIT: <skill | tool | certification> |
Treats the named item as a plausible role requirement even if it is absent from the job description |
Directives influence the overall_match score and the individual metric scores before the weighted average is computed.
Limit: the context string may be up to 5000 characters. Requests exceeding the limit fail with HTTP 422.
Example:
EMPHASIZE: backend scalability
DEEMPHASIZE: frontend frameworks
CREDIT: AWS
CREDIT: Kubernetes
Example Response
{
"data": {
"type": "api_job_result",
"id": "5a113c4d-38e9-43e5-80f4-ec3fdea3420e",
"attributes": {
"status": "success",
"type": "hr_resume_job_match_score",
"result": {
"match_scores": {
"overall_match": 88,
"skills_match": 92,
"experience_match": 85,
"education_match": 80,
"certifications_match": 70,
"job_title_relevance": 84,
"industry_experience_match": 75,
"project_experience_match": 78,
"technical_stack_match": 90,
"soft_skills_match": 88,
"methodologies_match": 82,
"language_proficiency_match": 95,
"location_preference_match": 100,
"remote_work_flexibility": 90,
"certifications_training_relevance": 70,
"years_experience_weighting": 80,
"recent_role_relevance": 83,
"management_experience_match": 60,
"cultural_fit_potential": 85,
"stability_score": 77
},
"explanations": {
"skills_match": "Candidate lists React, Node.js, and JavaScript with strong proficiency.",
"experience_match": "5+ years experience in a similar role within a tech startup.",
"education_match": "Bachelor's degree in Computer Science aligns with job requirements.",
"certifications_match": "Has partial certification coverage (e.g., Scrum Master).",
"language_proficiency_match": "Fluent in English as required."
}
}
}
}
}
Do you think our API is missing some obvious functionality?
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- A2Z WEB LTD
- Dawid Makowski
- Boost your Laravel AI capabilities!
License
The MIT License (MIT). Please see License File for more information.
Social Media
🚀 For the latest news, tutorials, and case studies, don't forget to follow us on:
sharpapi/laravel-resume-job-match-score 适用场景与选型建议
sharpapi/laravel-resume-job-match-score 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 52 次下载、GitHub Stars 达 4, 最近一次更新时间为 2025 年 05 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「laravel」 「cv」 「natural language processing」 「ATS」 「ai api」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sharpapi/laravel-resume-job-match-score 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sharpapi/laravel-resume-job-match-score 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sharpapi/laravel-resume-job-match-score 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Gets the complete thought from a verb and a noun using Moby Thesaurus
Seamlessly integrate Grok AI into Laravel applications with an elegant, developer-friendly package. Leverage powerful AI models for chat, automation, and NLP while maintaining Laravel's expressive simplicity.
OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API
AI Content Translation for Laravel powered by SharpAPI.com
AI SEO Meta Tag Generator for Laravel powered by SharpAPI.com
Laravel semantic search package with static code analysis and context-aware query building.
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 27
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-01