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.
- 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
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.
All you need to do is update your Firebase credentials inside:
const firebaseConfig = {
// your firebase credentials
};-
Create Realtime Database
- Go to Build > Realtime Database
-
Copy Firebase Config Credentials. Replace the existing ones in tpl-chat.php

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

- 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.
- 🤹♂️ LinkedIn: Shimanta Das
- 👹 Facebook: Shimanta Das FB
- 📸 Instagram: @meshimanta
- 🐦 Twitter: @Shimantadas247
- 📬 Telegram: Microcodes Official
- 🎦 YouTube: microcodes







