Skip to content

Files

Latest commit

79a2f05 · Mar 10, 2025

History

History

PHP-Chat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 25, 2024
Mar 10, 2025
Apr 25, 2024

README.md

Stream PHP Chat Tutorial

This directory contains the implementation for the How To Build a Real-Time PHP Chat App tutorial on getstream.io.

Overview

This sample project demonstrates how to build a real-time chat application using PHP as the backend and JavaScript for the frontend. The tutorial covers:

  • Setting up Stream's PHP SDK
  • Generating authentication tokens
  • Creating a chat interface
  • Sending and receiving messages in real-time
  • Implementing typing indicators and user presence

Getting Started

To run this project:

  1. Clone this repository
  2. Navigate to this directory
  3. Install dependencies:
    composer install
    
  4. Update the project with your Stream API credentials
  5. Start a PHP server:
    php -S localhost:9090
    
  6. Open your browser to http://localhost:9090/page.php

Tutorial Link

For the complete step-by-step tutorial, visit: How To Build a Real-Time PHP Chat App

Try Stream for Free

Want to build powerful chat functionality into your own PHP application?

  1. Sign up for a free Stream account - No credit card required
  2. Check out our PHP SDK documentation - Comprehensive guides
  3. Join our Discord community - Connect with other developers and the Stream team

Additional Resources