Resume Parser (CV Parser) for Laravel with AI

Submitted by dawid.makowski@gmail.com - 1 month ago

Leverage AI API to streamline resume parsing and data extraction in your HR Tech applications with AI-powered SharpAPI.

# Details: https://github.com/sharpapi/laravel-resume-parser

# composer require sharpapi/laravel-resume-parser


namespace App\Http\Controllers;

use GuzzleHttp\Exception\GuzzleException;
use SharpAPI\ResumeParser\ResumeParserService;

class ResumeController extends Controller
{
    protected ResumeParserService $resumeParserService;

    public function __construct(ResumeParserService $resumeParserService)
    {
        $this->resumeParserService = $resumeParserService;
    }

    /**
     * @throws GuzzleException
     */
    public function parseResume()
    {
        $statusUrl = $this->resumeParserService->parseResume(
            '/path/to/resume.pdf', 
            'English'   // OPTIONAL output language, English is the default anyway 
        );
        $result = $this->resumeParserService->fetchResults($statusUrl);

        return response()->json($result->getResultJson());
    }
}
Stats Categories Tags