AI Resume Builder in PHP with PDF Export & WhatsApp Integration




AI Resume Builder in PHP with PDF Export & WhatsApp Integration





Complete Step-by-Step PHP Project with Source Code

πŸš€ Sample PHP Code Snippets

πŸ” db.php (Database Connection)

<?php

$host = 'localhost'; $user = 'root'; $pass = ''; $dbname = 'resume_db';

$conn = new mysqli($host, $user, $pass, $dbname); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } ?>

πŸ“ insert_resume.php (Insert Resume Data)

<?php

session_start(); include 'db.php';

if ($_SERVER['REQUEST_METHOD'] == 'POST') { $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $education = $_POST['education']; $experience = $_POST['experience']; $skills = $_POST['skills']; $user_id = $_SESSION['user_id'];

$stmt = $conn->prepare("INSERT INTO resumes (user_id, name, email, phone, education, experience, skills) VALUES (?, ?, ?, ?, ?, ?, ?)");
$stmt->bind_param("issssss", $user_id, $name, $email, $phone, $education, $experience, $skills);
$stmt->execute();

header("Location: preview_resume.php?id=" . $conn->insert_id);
exit;

} ?>

πŸ“€ send_whatsapp.php (Send Resume via WhatsApp)

<?php

$resume_path = 'resumes/resume123.pdf'; $instance_id = 'your_instance_id'; $token = 'your_token'; $phone = '+919123456789';

$url = "https://api.ultramsg.com/$instance_id/messages/document"; $data = [ 'token' => $token, 'to' => $phone, 'filename' => 'My_Resume.pdf', 'document' => "https://yourdomain.com/$resume_path", 'caption' => 'Here is your generated resume.' ];

$curl = curl_init(); curl_setopt_array($curl, [ CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_POSTFIELDS => http_build_query($data) ]); $response = curl_exec($curl); curl_close($curl); echo $response; ?>

πŸ“„ Full Project Overview

This project is a powerful AI Resume Builder built using PHP and MySQL. It allows users to register, create professional resumes, export them as PDF, and even send them via WhatsApp using the UltraMsg API.

πŸ›  Technologies Used

  • PHP 8+
  • MySQL Database
  • Bootstrap 5 (Responsive Design)
  • DOMPDF (PDF Generation)
  • UltraMsg WhatsApp API

πŸ“ Project Structure

/resume_builder/

β”œβ”€β”€ index.php β”œβ”€β”€ register.php β”œβ”€β”€ dashboard.php β”œβ”€β”€ create_resume.php β”œβ”€β”€ preview_resume.php β”œβ”€β”€ generate_pdf.php β”œβ”€β”€ send_whatsapp.php β”œβ”€β”€ admin_view.php β”œβ”€β”€ db.php β”œβ”€β”€ resumes/ β”œβ”€β”€ templates/ └── assets/

πŸ‘¨β€πŸ’Ό User Features

  • User registration and login
  • Form to enter resume details (name, email, phone, education, experience, skills)
  • Preview resume in browser
  • Generate PDF instantly
  • Send resume PDF to WhatsApp (via UltraMsg)

πŸ‘¨β€πŸ’Ό Admin Features

  • View all users’ resumes
  • Preview or download any resume

πŸ“€ WhatsApp Integration

We used UltraMsg to send PDF resumes via WhatsApp. It requires:

  • Instance ID
  • Token
  • User’s WhatsApp number in international format

The PDF is sent as a document with a custom caption.

πŸ›  PDF Resume Generator

The system uses the DOMPDF library to render HTML-based resumes into PDF format on the fly. You can add templates using the templates/ folder.

πŸŽ“ Ideal For

  • Diploma or B.Tech final year projects
  • Freelancers offering resume builder services
  • Educational portfolio or web tools

πŸ“¦ Extra Features (Optional)

  • Multiple Resume Templates
  • Dark Mode Support
  • Auto-fill with AI (GPT integration)
  • Download Logs / Resume History

πŸ’¬ Final Thoughts

This AI Resume Builder project is both practical and feature-rich. It teaches core PHP, MySQL, PDF creation, API integration, and more. Suitable for job seekers, students, and PHP learners.

Project created by Dipesh Jamsudkar | 2025


Tags: resume builder php project, whatsapp api php, final year php project, dompdf resume generator


Leave a Reply

Your email address will not be published. Required fields are marked *