PHP Ticket Generator
A ticket generator in PHP to generate tickets with a QRCode from a SQLite database. You can add custom events and generate a simplified PDF version of the ticket.
Project Purpose and Goal
As I am studying PHP, I started this project to learn about the capabilities of PHP in handling backend logic, database interactions, and server-side rendering of HTML content.
I decided to use SQLite database for its simplicity, as I can initilize it with a simple function and run queries through the PHP Data Object (PDO), greatly simplyfing the process and showcasing PHP's versatility in managing data persistence and retrieval. There is also a page to add events and to list all of them, interacting in real-time with the database.
Additionally, the integration of QR code generation and PDF rendering highlighted PHP's ability to work seamlessly with third-party libraries and tools, thus expanding its utility beyond traditional web development practices.
Lessons Learned
Throughout the development of the ticket generator project, one of the key insights was the importance of effective data flow across different pages of the application, and how to render this data as dynamic content.
Without any kind of framework, I tried to put an emphasis on code reusability, creating a common.php lib file that featured different functions to create the PDO and fetch/add different kind of events on it. This project further reminds me the need to have a robust backend validation.