Ana Sayfa / Kod ve Scriptler / Web Push Notification System using Firebase in PHP

Web Push Notification System using Firebase in PHP

Firebase kullanan Core PHP ile geliştirilmiş güçlü bir Web Push Bildirim Sistemi. Kullanıcı token yakalama, yönetici paneli ve

  • Yayın tarihi6 Haziran 2025
  • Nerede çalışırPHP 7.3, PHP 7.4, PHP 8.0, PHP 8.1, PHP 8.2, PHP 8.3, PHP 8.4
  • VeritabanıMySQL 4.x, MySQL 5.x
  • Paket içeriği.php, .css, .html, .sql, JavaScript .js
  • Son güncelleme6 Haziran 2025
  • Canlı demoVar
Web Push Notification System using Firebase in PHP

Overview

Web Push Notification System using PHP + Firebase

This is a complete browser-based push notification system developed in Core PHP using Firebase Cloud Messaging (FCM). It enables you to send real-time notifications directly to users’ browsers — even when they are not on your site!

Features

🔧 System Features

  • 🚀 Firebase Cloud Messaging integration
  • 🔐 Secure Admin Panel with login authentication
  • 📥 Automatically captures FCM tokens using AJAX
  • 📝 Add/Edit/Delete notifications from the dashboard
  • 📸 Supports images and click-action URLs in notifications
  • 📊 View the list of all sent notifications
  • 📱 Responsive UI using Bootstrap 5

Requirements

🔧 Server Requirements

  • ✅ PHP 7.0 or higher (Recommended: PHP 7.4+)
  • ✅ MySQL 5.6 or higher
  • ✅ Apache/Nginx Server (XAMPP/WAMP/LAMP or Live Hosting)
  • ✅ HTTPS (SSL Certificate) — required for push notifications
  • ✅ Enabled cURL in PHP (for Firebase API requests)
  • ✅ Enabled mod_rewrite (if using Apache

🧰 1. Setup with Composer

Run this in your project directory:

composer init

composer require guzzlehttp/guzzle

This installs Guzzle, a PHP HTTP client used to send requests to FCM.