Skip to content

iamshimantadas/Firebase-Chat-WP

Repository files navigation

Firebase Chat WP

A one-to-one Firebase chat system designed for seamless integration with WordPress using PHP.
Although optimized for WordPress developers, the same coding structure can be adapted to other frameworks such as React, Laravel, or even custom PHP applications.


🚀 Features

  • One-to-one chat system using Firebase Realtime Database
  • Simple integration with WordPress themes/plugins
  • Extendable to any framework (React, Laravel, custom PHP, etc.)
  • Easy setup with Firebase credentials
  • Real-time message syncing

📂 Core File

templates/tpl-chat.php

This is the primary coding file that powers the chat system.
By customizing this file, you can easily extend or integrate the chat system into different platforms.


⚙️ Configuration

All you need to do is update your Firebase credentials inside:

const firebaseConfig = {
  // your firebase credentials
};

📝 Setup Steps

  1. Open Firebase Console
    Step 1

  2. Create a New Project
    Step 2

  3. Access Your Firebase Project Dashboard
    Step 3

  4. Create Realtime Database

    • Go to Build > Realtime Database
    Step 4
  5. Select Your Preferred Database Region
    Step 5

  6. Start in Locked Mode
    Step 6

  7. Set Database Rules
    Step 7

  8. Go to Project Settings → Create a Web App
    Step 8

  9. Enter Your App Name & Select Firebase Hosting
    Step 9

  10. Copy Firebase Config Credentials. Replace the existing ones in tpl-chat.php
    Step 10

  11. 🎉 Done! Now when you start chatting, messages will appear in your Realtime Database.
    Step 11

📌 Notes

  • This project is meant for learning/demo purposes.
  • For production apps, make sure to secure your Firebase rules.
  • Extend and customize as needed for your own framework.

👉 My Social Media Links

About

Multiuser 1:1 based chat system with Google Firebase

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published