usamatoor/firebase-notifications 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

usamatoor/firebase-notifications

最新稳定版本:v1.0.0

Composer 安装命令:

composer require usamatoor/firebase-notifications

包简介

Laravel Firebase Notifications package using OAuth2 (Google) with cURL.

README 文档

README

🔥 Laravel Firebase Notifications (OAuth2)

Send Firebase Cloud Messaging (FCM) notifications securely using OAuth2 in Laravel.

📦 Installation

composer require usamatoor/firebase-notifications

If you're developing locally:


"repositories": [
  {
    "type": "path",
    "url": "packages/Usama/firebase-notifications"
  }
]

Then run:

composer require usamatoor/firebase-notifications:dev-main

🔧 Configuration

Add the following to your .env file:


FIREBASE_CLIENT_ID=your-client-id
FIREBASE_CLIENT_SECRET=your-client-secret
FIREBASE_REFRESH_TOKEN=your-refresh-token
FIREBASE_PROJECT_ID=your-project-id

🚀 Usage


use Usama\FirebaseNotifications\FirebaseNotifications;

$firebase = new FirebaseNotifications();

$firebase->send(
    $firebaseToken,
    'Welcome!',
    'Thank you for signing up.',
    ['data' => ['custom' => 'payload']]
);

📘 Documentation

  • Full guide available in the /docs directory.
  • Includes advanced usage, exception handling, and token refresh logic.

🙌 Contributing

Pull requests are welcome! For major changes, please open an issue first.

Created with ❤️ by Usama Toor

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-24