meunee/lara-fcm
最新稳定版本:v1.0.2
Composer 安装命令:
composer require meunee/lara-fcm
包简介
Laravel fcm api http v1 package
README 文档
README
Installation
Install this package with Composer:
composer require meunee/lara-fcm
Laravel
Register the provider directly in your app configuration file config/app.php config/app.php:
Laravel >= 5.5 provides package auto-discovery
'providers' => [ // ... Meunee\LaraFcm\FCMServiceProvider::class, ]
Add the facade aliases in the same file:
'aliases' => [ ... 'FCM' => Meunee\LaraFcm\Facades\FCM::class, 'FCMGroup' => Meunee\LaraFcm\Facades\FCMGroup::class, // Deprecated ]
Note: The
FCMGroupfacade is deprecated.
Publish the package config file using the following command:
$ php artisan vendor:publish --provider="Meunee\LaraFcm\FCMServiceProvider"
Package Configuration
In your .env file, add the server key and the secret key for the Firebase Cloud Messaging:
FCM_PROJECT_ID="my_project_id" FCM_JSON="path_to_json_file" FCM_API_SERVER_KEY="my_api_server_key"
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-12-24