Download the PHP package pj-holt/cv-generator without Composer
On this page you can find all versions of the php package pj-holt/cv-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pj-holt/cv-generator
More information about pj-holt/cv-generator
Files in pj-holt/cv-generator
Package cv-generator
Short Description A PHP package to generate technical styled CV PDFs
License MIT
Informations about the package cv-generator
CV Generator
A PHP 8.3+ Composer package for generating professional, technical-styled CV PDFs with a clean, structured layout.
Features
- ✅ Clean, professional technical CV layout
- ✅ PDF generation using DomPDF
- ✅ Fluent API with CVData builder class
- ✅ Support for multiple experience entries with detailed references
- ✅ Education section with bullet points
- ✅ Flexible optional sections with subsections support
- ✅ LinkedIn profile integration
- ✅ Comprehensive PHPUnit test suite
- ✅ PHP 8.3+ compatibility
Installation
Install via Composer:
Requirements
- PHP 8.3 or higher
- Composer
Quick Start
Optional Sections
The package supports flexible optional sections with various formats:
Basic Optional Section
Optional Section with Subtitle
Optional Section with Subsections
Experience References
Each experience entry can include detailed reference information:
CV Layout
The generated CV follows this professional structure:
API Reference
CVData Class
The CVData
class provides a fluent interface for building CV data:
setPersonalInfo(string $firstName, string $lastName, string $address, string $telephone, string $email, ?string $linkedin = null, ?string $title = null): self
Sets personal information for the CV header.
setIntroduction(string $introduction): self
Sets the introduction/summary text.
addExperience(string $company, string $role, string $dateStart, string $dateEnd, array $bullets, ?array $reference = null): self
Adds a professional experience entry.
addEducation(string $institution, string $qualification, string $dateStart, string $dateEnd, array $bullets): self
Adds an education entry.
addOptionalSection(string $title, ?array $bullets = null, ?string $subtitle = null, ?array $subsections = null): self
Adds an optional section (skills, certifications, etc.).
toArray(): array
Returns the CV data as an array for the generator.
CVGenerator Class
generate(array $data, string $outputPath): void
Generates a PDF CV from the provided data array and saves it to the specified path.
Usage Examples
Using Raw Array Data
Multiple Experience Entries
Optional Sections with Subtitles
Testing
Run the test suite:
Or run PHPUnit directly:
The test suite includes:
- PDF generation tests
- Data validation tests
- Special character handling
- Empty data handling
- CVData builder functionality
Development
Running Tests
Code Style
This package follows PSR-12 coding standards.
License
This package is open-sourced software licensed under the MIT license.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Changelog
1.0.0
- Initial release
- Basic CV generation functionality
- CVData builder class
- Comprehensive test suite