1. Go to this page and download the library: Download pj-holt/cv-generator library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pj-holt / cv-generator example snippets
VGenerator\CVGenerator;
use CVGenerator\CVData;
// Create CV data using the fluent builder
$cvData = new CVData();
$cvData->setPersonalInfo(
'John',
'Doe',
'123 Main Street, City, State 12345',
'+1-555-123-4567',
'[email protected]',
'https://linkedin.com/in/johndoe', // Optional LinkedIn
'Full Stack Developer' // Optional title
)
->setIntroduction('Experienced software developer with 5+ years in web development.')
->addExperience(
'Tech Company',
'Senior Developer',
'Jan 2020',
'Present',
[
'Led development of microservices architecture',
'Implemented CI/CD pipelines',
'Mentored junior developers',
'Collaborated with product teams'
],
[ // Detailed reference information
'name' => 'Jane Manager',
'job_title' => 'Engineering Director',
'company' => 'Tech Company',
'email' => '[email protected]',
'phone' => '+1-555-987-6543', // Optional
'relationship' => 'Direct Manager' // Optional
]
);
// Generate PDF
$generator = new CVGenerator();
$generator->generate($cvData->toArray(), 'my_cv.pdf');