Loading…
Project 04

notes from the workbench

Ticketly

Completed

CodeIgniter 4 powered concert & festival ticketing platform with multi-step checkout and JWT RESTful API.

  • CodeIgniter 4
  • MySQL
  • Tailwind CSS v4
  • Flowbite
  • JWT APIs
  • REST API docs
Ticketly preview
Interface previewTicketlyConcert visuals © SM Entertainment and respective rights holders. Local promoters: CK Star Entertainment (RIIZE) / Dyandra Global Edutainment (NCT DREAM).
The brief

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.

People & permissions

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
Under the surface

Data structure.

Relational MySQL schema structured with clean relational integrity, foreign key constraints, and indexing for event catalogs and booking transactions.

events9 fields
  • id
  • title
  • description
  • category
  • date
  • time
  • venue
  • image
  • created_at
ticket_types6 fields
  • id
  • event_id
  • name
  • price
  • quantity_total
  • quantity_sold
seats6 fields
  • id
  • event_id
  • ticket_type_id
  • seat_row
  • seat_number
  • label
orders6 fields
  • id
  • user_id
  • order_code
  • total_price
  • payment_status
  • created_at
order_items6 fields
  • id
  • order_id
  • ticket_id
  • seat_id
  • quantity
  • price
payment_methods4 fields
  • id
  • name
  • code
  • is_active
password_resets4 fields
  • id
  • email
  • token
  • created_at
users6 fields
  • id
  • username
  • email
  • password
  • role
  • created_at
Try it locally

From repo to running.

  1. 01Clone the CodeIgniter 4 repository

    git clone https://github.com/pratama1246/Ticketly-Project.git
  2. 02Navigate into the project directory

    cd Ticketly-Project
  3. 03Install backend PHP dependencies via Composer

    composer install
  4. 04Duplicate configuration environment file

    cp env .env
  5. 05Set app.baseURL, JWT_SECRET_KEY, and database credentials in .env

    nano .env
  6. 06Run database migrations to generate tables

    php spark migrate
  7. 07Seed database with default payment methods, events, and testing accounts

    php spark db:seed --all
  8. 08Launch development server at http://localhost:8080

    php spark serve
Back to top ↑
next from the workbenchOrbitSlideRead the case study