Complete PHP Ratchet Chat System

Заказчик: AI | Опубликовано: 27.01.2026

I already have a Bootstrap 3 interface running on PHP with Ratchet WebSockets handling the live connections, but key pieces are still missing before I can deploy. The database schema is only partially in place, so you’ll see a mix of finished and placeholder tables. Here’s what still needs to be wired up and polished: • Robust user authentication that slots neatly into the existing Bootstrap 3 layout and plays well with Ratchet’s event loop. • Persistent message history—conversations must be written to MySQL as they happen and reload instantly when a user opens or refreshes a chat. • Real-time notifications (e.g., new-message badges and subtle audio cues) pushed over the same WebSocket channel without degrading performance. Only chat history will be stored for now; no extra profile data is required. Keep the code modular and well-commented so I can extend the scopes later. Acceptance criteria • Users can register, log in, and stay authenticated across tabs. • Past conversations load in chronological order within 200 ms on a typical shared host. • Incoming messages and notification badges appear in under 100 ms for all connected clients. • All new database interactions use prepared PDO statements. If this aligns with your skills in PHP, Ratchet, MySQL, jQuery, and Bootstrap 3, I’m ready to hand over the repo and staging credentials so we can get this wrapped up quickly.