sohagsrz/resume-parser
Composer 安装命令:
composer require sohagsrz/resume-parser
包简介
A robust PHP package for extracting structured data from resume PDFs.
README 文档
README
A modern PHP package to extract structured data from resume PDFs — with both classic and OpenAI-powered AI parsing!
Easily extract names, emails, phone numbers, social handles, skills, education, experience, certifications, and languages from any resume PDF. Use classic parsing for speed, or unleash the power of OpenAI for even more robust results.
✨ Features
- Extracts name, email, phone, address
- Detects and normalizes global phone numbers
- Extracts all major social handles (LinkedIn, GitHub, Twitter/X, Facebook, Instagram, Stack Overflow, Dribbble, Behance, Medium, YouTube, TikTok, Pinterest, Telegram, WhatsApp, blog, website)
- Parses skills (technical, soft, and unique skills)
- Extracts education, experience, certifications, and languages
- Section-based parsing for high accuracy
- Optional: AI-powered parsing using OpenAI for even more robust extraction
- Outputs structured JSON/array
📦 Installation
composer require sohagsrz/resume-parser
⚡ Usage
Manual/Classic Parsing
require 'vendor/autoload.php'; use Sohagsrz\ResumeParser\ResumeParser; $result = ResumeParser::parse('path/to/resume.pdf'); echo json_encode($result, JSON_PRETTY_PRINT);
AI-Powered Parsing (OpenAI)
require 'vendor/autoload.php'; use Sohagsrz\ResumeParser\OpenAIResumeParser; $apiKey = 'sk-...'; // Your OpenAI API key $result = OpenAIResumeParser::parse('path/to/resume.pdf', $apiKey); echo json_encode($result, JSON_PRETTY_PRINT);
📝 Example Output Structure
{
"name": "Md Sohag Islam",
"email": "mdsohagislam25@gmail.com",
"phone": "+8801798965122",
"address": "Niyamotpur, Saidpur, Bangladesh",
"linkedin": ["https://linkedin.com/in/sohagbd"],
"github": ["https://github.com/sohag-dev"],
"twitter": [],
"facebook": [],
"instagram": [],
"stackoverflow": [],
"dribbble": [],
"behance": [],
"medium": [],
"youtube": [],
"tiktok": [],
"pinterest": [],
"telegram": [],
"whatsapp": [],
"blog": [],
"website": [],
"skills": ["PHP", "Laravel", "React", "Tailwind CSS"],
"education": [
{
"degree": "BSc in Computer Science",
"institution": "AIUB",
"year": "2026"
}
],
"experience": [
{
"job_title": "Backend Developer",
"company": "Ujjol Lab",
"duration": "2022-2024",
"description": "Developed REST APIs, maintained Laravel applications."
}
],
"certifications": ["AWS Cloud Practitioner", "Meta Frontend Certificate"],
"languages": ["English", "Bangla"]
}
💻 Example Demos
example/parse_example.php— Manual/classic parsingexample/bootstrap_upload.php— Manual/classic parsing with Bootstrap upload formexample/bootstrap_ai_upload.php— AI-powered parsing with Bootstrap upload form and OpenAI API key
🔑 OpenAI API Key
To use the AI-powered parser, you need an OpenAI API key. You can get one from OpenAI. Keep your API key secure and do not expose it publicly.
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to open an issue or submit a pull request.
If you like this project, please ⭐ star it and follow me for more cool open-source tools!
📄 License
MIT
👤 Author
sohagsrz/resume-parser 适用场景与选型建议
sohagsrz/resume-parser 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 50 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 05 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sohagsrz/resume-parser 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sohagsrz/resume-parser 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 50
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-31