← Back to portfolio
Real-Time PHP/MySQL Chat
2026PHPMySQLWebSocketAJAXSecurity

Real-Time PHP/MySQL Chat

A chat application with secure sign-up, login and real-time messages through AJAX polling or Ratchet WebSockets.

Goal

This project builds a global PHP/MySQL chat with complete authentication and two real-time communication modes: AJAX polling and Ratchet WebSockets.

Features

  • Registration and login with hashed passwords
  • Sessions, CSRF protection and prepared PDO queries
  • JSON message sending and fetching
  • Anti-spam sending limit
  • Responsive dark-mode interface with Bootstrap