sharpapi/laravel-resume-job-match-score 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

SharpAPI GitHub cover

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.

Latest Version on Packagist Total Downloads

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

License

License: MIT

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 我们能提供哪些服务?
定制开发 / 二次开发

基于 sharpapi/laravel-resume-job-match-score 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 52
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 27
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-01