sharpapi/php-resume-parser
Composer 安装命令:
composer require sharpapi/php-resume-parser
包简介
Pure PHP client for SharpAPI Resume/CV Parser (extracts structured data from resumes in PDF/DOC/DOCX/TXT/RTF).
README 文档
README
Resume/CV Parser for PHP 8
🎯 Extract structured data from resumes — 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 Parser API page.
Quick Links
| Resource | Link |
|---|---|
| Main API Documentation | Authorization, Webhooks, Polling & More |
| Postman Documentation | View Docs |
| Product Details | SharpAPI.com |
| SDK Libraries | GitHub - SharpAPI SDKs |
Requirements
- PHP >= 8.0
Installation
Step 1. Install the package via Composer:
composer require sharpapi/php-resume-parser
Step 2. Visit SharpAPI to get your API key.
Laravel Integration
Building a Laravel application? Check the Laravel package version: https://github.com/sharpapi/laravel-resume-parser
What it does
This package uploads a resume file to the SharpAPI AI endpoint and returns a status URL to poll for results. When the job completes, you can fetch a structured JSON containing parsed resume data (contact info, experience, education, skills, and more).
Usage
<?php require __DIR__ . '/vendor/autoload.php'; use SharpAPI\ResumeParser\ResumeParserClient; use GuzzleHttp\Exception\GuzzleException; $resumePath = __DIR__ . '/resume.pdf'; // make sure this file exists $language = 'English'; $client = new ResumeParserClient(apiKey: 'your_api_key_here'); try { // submit parsing job $statusUrl = $client->parseResume( $resumePath, $language // optional – English is default ); // Optional: adjust polling settings $client->setApiJobStatusPollingInterval(10); // seconds $client->setApiJobStatusPollingWait(180); // seconds total wait // fetch results when ready $result = $client->fetchResults($statusUrl)->toArray(); print_r($result); } catch (GuzzleException $e) { // Handle SharpAPI or network errors echo $e->getMessage(); }
Example Response (trimmed)
{
"data": {
"type": "api_job_result",
"id": "5a113c4d-38e9-43e5-80f4-ec3fdea3420e",
"attributes": {
"status": "success",
"type": "hr_parse_resume",
"result": {
"positions": [
{
"skills": [
"Acceptance testing",
"Technical investigation",
"Exploratory testing",
"Agile",
"Test environments",
"Test management tools",
"UAT knowledge",
"Writing test reports",
"Organising, conducting and supporting test activities",
"Performance testing",
"Integration testing",
"Rapid response to equipment failures",
"Implementing immediate repairs",
"Participating in audits and reviews",
"Monitoring and reporting repair trends",
"Drawings and documentation updates",
"Executing test cases",
"Documenting results and defects",
"Testing and fault finding finished systems",
"Reporting issues to Test Manager",
"Assisting in software installation",
"Experience of testing Web, PC and mobile based software",
"Understanding iterative software development lifecycle",
"Manual testing methods and processes",
"Technical knowledge of Test Systems hardware and software",
"Planning and task management skills",
"Microsoft operating systems",
"Testing GUI based software"
],
"country": "United Kingdom",
"end_date": null,
"start_date": "2008-06-01",
"job_details": "Responsible for the whole test process from planning, through test plan development, execution & result reporting. Also involved in the development and improvement of the test functions, putting forward suggestions and implementing plans accordingly. Duties included organising, conducting and supporting test activities, performance testing, integration testing, rapid response to equipment failures, implementing immediate repairs, participating in audits and reviews, monitoring and reporting repair trends, updating drawings and documentation, executing test cases, documenting results and defects, testing and fault finding finished systems, reporting issues to Test Manager, and assisting in software installation.",
"company_name": "IT & Telecoms Company",
"position_name": "Test Engineer"
}
],
"candidate_name": "Linda Harris",
"candidate_email": "linda.h@dayjob.co.uk",
"candidate_phone": "02476 000 0000, 0887 222 9999",
"candidate_address": "34 Made Up Road, Coventry, CV66 7RF",
"candidate_language": "English",
"education_qualifications": [
{
"country": "United Kingdom",
"end_date": "2008-06-01",
"start_date": "2005-09-01",
"degree_type": "Bachelor’s Degree or equivalent",
"school_name": "Nuneaton University",
"school_type": "University or equivalent",
"learning_mode": "In-person learning",
"education_details": "",
"faculty_department": "",
"specialization_subjects": "Software Engineering"
},
{
"country": "United Kingdom",
"end_date": "2005-06-01",
"start_date": "2000-09-01",
"degree_type": "High School/Secondary School Diploma or equivalent",
"school_name": "Coventry North School",
"school_type": "High School/Secondary School or equivalent",
"learning_mode": "In-person learning",
"education_details": "A levels: Maths (A), English (B), Technology (B), Science (C)",
"faculty_department": "",
"specialization_subjects": ""
}
],
"candidate_spoken_languages": [
"German"
],
"candidate_honors_and_awards": [],
"candidate_courses_and_certifications": [
"ISEB certification"
]
}
}
}
}
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
- A2Z WEB LTD
- Dawid Makowski
- Boost your PHP 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/php-resume-parser 适用场景与选型建议
sharpapi/php-resume-parser 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「parser」 「cv」 「resume」 「hr」 「SharpAPI」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sharpapi/php-resume-parser 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sharpapi/php-resume-parser 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sharpapi/php-resume-parser 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Easy to use SDK with grabber for multiple platforms at once like YouTube, Dailymotion, Facebook and more.
An MT940 bank statement parser for PHP
Laravel integration for the jsonapi.org parser
Parses LinkedIn PDF resumes from recruitment portal into a set of usable entities
A modern HTML DOM parser for PHP using DOMDocument and Symfony CssSelector.
A PHP library for building and working with the JSON resume schema.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 37
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-17