VictorsFleite / resume-parser
将招聘门户中的PDF简历解析为一系列可用的实体
v1.0.0
2019-02-07 16:36 UTC
Requires
- smalot/pdfparser: ^0.14.0
Requires (Dev)
- mockery/mockery: ^0.9.8
- phpunit/phpunit: ^6.0
This package is not auto-updated.
Last update: 2024-09-29 05:28:11 UTC
README
此库将招聘门户中的LinkedIn PDF简历解析为一系列PHP实体。这些实体基于简历中的各个部分,便于提取信息,如当前/之前的职位、教育历史、认证等。
基本用法
$resumeParser = new \LinkedInResumeParser\Parser(); $parsedResume = $resumeParser->parse('/path/to/resume.pdf'); echo $parsedResume->getFullName(); // Ross Kinsman echo $parsedResume->getCurrentRole()->getOrganisation(); // The Drum echo $parsedResume->getCurrentRole()->getStart()->format('F, Y'); // August, 2016 foreach ($parsedResume->getSkills() as $skill) { echo $skill; // PHP // Git // ... } foreach ($parsedResume->getEducationEntries() as $educationEntry) { echo $educationEntry->getInstitution(); // University of Strathclyde }
测试数据
总是欢迎更多的测试数据,如果您愿意包括您的简历,我将乐意接受PR和相关测试。
本项目现有的测试数据是我在GitHub上找到的一组LinkedIn简历。如果您的简历在这里,并且您希望将其删除,我很容易在Twitter上联系到 @akhileshdarjee,或者在GitHub仓库上提出一个问题。