Skip to content

Parse LinkedIn PDF Resume and extract out name, email, education and work experiences.

Notifications You must be signed in to change notification settings

lesterchan/linkedin-pdf-resume-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LinkedIn PDF Resume Parser

Build Status

This library parses LinkedIn PDF resume and extracts out the name, email, summary, work experiences and education history.

Installation

$ composer require lesterchan/linkedin-pdf-resume-parser:dev-master

Usage

// Init
$resumeParser = new \LinkedInResumeParser\Parser();
$parsedResume = $resumeParser->parse('/path/to/resume.pdf');
 
// Get Name
echo $parsedResume->getName();
 
// Get Email
echo $parsedResume->getEmail();
 
// Get LinkedIn Profile URL
echo $parsedResume->getUrl();
 
// Get Summary
echo $parsedResume->getSummary();
 
// Get Work Experiences
$experiences = $parsedResume->getExperiences();
if (count($experiences) > 0) {
    foreach ($experiences as $experience) {
        echo $experience->getTitle() . ' at ' . $experience->getOrganisation() . ' (' . date_format($experience->getStart(), 'F Y') . ' - ' . date_format($experience->getEnd(), 'F Y') . ')';
    }
}
 
// Get Education
$education = $parsedResume->getEducation();
if (count($education) > 0) {
    foreach ($education as $edu) {
        echo $edu->getLevel() . ', ' . $edu->getCourseTitle() . ' at ' . $edu->getInstitution() . ' (' . date_format($edu->getStart(), 'Y') . ' - ' . date_format($edu->getEnd(), 'Y') . ')';
    }
}

Test

$ phpunit

Credits

Props to ver1000000 and Persata.

About

Parse LinkedIn PDF Resume and extract out name, email, education and work experiences.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages