lara-care / cv-agent
Laravel package to generate CV sections with AI
Requires
- php: ^8.1
README
π CvAgent is a Laravel package that automatically generates tailored CV (resume) section content using Artificial Intelligence (AI). It helps you quickly build professional resumes by generating coherent and personalized examples based on a userβs profile.
π¦ Installation
Install the package via Composer:
composer require laracare/cv-agent
βοΈ Configuration
Publish the configuration file:
php artisan vendor:publish --provider="LaraCare\CvAgent\Providers\CvAgentProvider" --tag=config
This will create:
config/cv-agent.php
Inside, you can configure:
-
your AI providerβs API keys,
-
default parameters (language, model, etc.).
π Usage
Using the Facade
use LaraCare\CvAgent\Facades\CvSections; $profile = "IoT Engineer with 2 years of experience, seeking a position in AI"; $content = CvSections::generate('hobbies', $profile, 'en'); dd($content);
Expected Output
{ "section": "hobbies", "content": "Passionate about developing open-source IoT projects, photography, and long-distance cycling." }
π Package Structure
cv-agent/ βββ config/ β βββ cv-agent.php # Package configuration βββ src/ β βββ Facades/ β β βββ CvSections.php # Facade for quick access β βββ Providers/ β β βββ CvAgentProvider.php # Service Provider β βββ CvAgent.php # Main class βββ composer.json βββ README.md
π§© Example Integration in a Controller
use LaraCare\CvAgent\Facades\CvSections; class ResumeController extends Controller { public function generate() { $profile = "IoT Engineer with 2 years of experience, seeking AI position"; return response()->json( CvSections::generate("skills", $profile, "en") ); } }
π Extensibility
-
Add your own CV sections
-
Switch AI models in config/cv-agent.php
-
Support multiple languages (en, fr, etc.)
π€ Contributing
Pull Requests are welcome! Fork the project, create your feature branch, then:
git checkout -b feature/amazing-feature
git commit -m 'Add amazing feature'
git push origin feature/amazing-feature
π§Ύ License
This package is open-sourced software licensed under the MIT license.