What I set out to build.
Ticketly is an event ticketing web platform built with CodeIgniter 4 (PHP 8.1+) and MySQL. Completed as a team academic project, with my contribution as team leader covering web frontend and backend/API development, it provides an end-to-end ticketing solution featuring a public event catalog for concerts and festivals, a multi-step checkout workflow, an administrative management board for event/ticket CRUD and sales monitoring, and a JWT-protected RESTful API serving the Flutter mobile client with interactive Scalar/OpenAPI documentation.
The problem
Event registration and ticket sales on campus or local gigs are often fragmented, leading to quota mismatches, manual verification bottlenecks, and lack of mobile integration.
The approach
A CodeIgniter 4 MVC web application providing structured event & ticket management, a multi-step checkout pipeline, and a RESTful API backend protected by custom JWT filters to power companion mobile clients.
What it does
- Multi-step checkout workflow (Personal Info → Payment Method → Order Review → Payment Confirmation)
- CodeIgniter Shield session auth for web & custom JWT token filter for mobile REST API
- Admin Panel with sales metrics, event management (CRUD), and ticket quota controls
- Ticket tier management with duplicate tier functionality for quick setup
- Order transaction history and automated PDF invoice generation
- Scalar-powered interactive OpenAPI documentation (/api/docs)
All event logos, promoter names, and concert posters featured in this project belong to their respective copyright owners. They are used purely for educational and academic demonstration purposes to simulate a realistic ticketing catalog.
Who uses it?
User (Web)
- Browse concerts, festivals, and featured event catalogs
- Multi-step ticket checkout with seat and quantity selection
- View transaction history and download PDF ticket invoices
- Manage account profile and password reset via email OTP
Administrator (Web Panel)
- Dashboard overview with transaction metrics and sales statistics
- Full Event management (CRUD operations: create, edit, update, delete)
- Ticket tier configuration (pricing, quotas, and tier duplication)
- Order status management and PDF invoice downloads
Mobile API Integration
- User authentication endpoints (Login, Register, OTP verification, Reset Password)
- Public event catalog & featured banner endpoints
- Cart subtotal calculation with fee breakdowns
- Protected endpoints (JWT) for user profile, orders list, and checkout flow
Data structure.
Relational MySQL schema structured with clean relational integrity, foreign key constraints, and indexing for event catalogs and booking transactions.
events9 fields
idtitledescriptioncategorydatetimevenueimagecreated_at
ticket_types6 fields
idevent_idnamepricequantity_totalquantity_sold
seats6 fields
idevent_idticket_type_idseat_rowseat_numberlabel
orders6 fields
iduser_idorder_codetotal_pricepayment_statuscreated_at
order_items6 fields
idorder_idticket_idseat_idquantityprice
payment_methods4 fields
idnamecodeis_active
password_resets4 fields
idemailtokencreated_at
users6 fields
idusernameemailpasswordrolecreated_at
From repo to running.
01Clone the CodeIgniter 4 repository
git clone https://github.com/pratama1246/Ticketly-Project.git02Navigate into the project directory
cd Ticketly-Project03Install backend PHP dependencies via Composer
composer install04Duplicate configuration environment file
cp env .env05Set app.baseURL, JWT_SECRET_KEY, and database credentials in .env
nano .env06Run database migrations to generate tables
php spark migrate07Seed database with default payment methods, events, and testing accounts
php spark db:seed --all08Launch development server at http://localhost:8080
php spark serve
