PHP code example of meunee / lara-fcm
1. Go to this page and download the library: Download meunee/lara-fcm library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
meunee / lara-fcm example snippets
'providers' => [
// ...
Meunee\LaraFcm\FCMServiceProvider::class,
]
'aliases' => [
...
'FCM' => Meunee\LaraFcm\Facades\FCM::class,
'FCMGroup' => Meunee\LaraFcm\Facades\FCMGroup::class, // Deprecated
]
FCM_PROJECT_ID="my_project_id"
FCM_JSON="path_to_json_file"
FCM_API_SERVER_KEY="my_api_server_key"