{"id":32281301,"url":"https://github.com/nylo-core/laravel-notify-fcm","last_synced_at":"2026-02-06T18:13:50.541Z","repository":{"id":243196862,"uuid":"811765083","full_name":"nylo-core/laravel-notify-fcm","owner":"nylo-core","description":"Laravel Notify for Firebase Cloud Messaging (FCM) - Send push notifications to your Flutter app from Laravel.","archived":false,"fork":false,"pushed_at":"2025-12-13T11:07:30.000Z","size":160,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"2.x","last_synced_at":"2025-12-15T01:23:11.990Z","etag":null,"topics":["firebase-cloud-messaging","flutter","flutter-firebase-cloud-messaging","flutter-notification","laravel"],"latest_commit_sha":null,"homepage":"https://nylo.dev","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nylo-core.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["agordn52"]}},"created_at":"2024-06-07T08:56:51.000Z","updated_at":"2025-12-13T11:07:32.000Z","dependencies_parsed_at":"2024-08-22T22:25:37.235Z","dependency_job_id":"ec9f997c-9b32-4bfa-86dd-4a6978b4722a","html_url":"https://github.com/nylo-core/laravel-notify-fcm","commit_stats":null,"previous_names":["nylo-core/laravel-notify-fcm"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/nylo-core/laravel-notify-fcm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nylo-core%2Flaravel-notify-fcm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nylo-core%2Flaravel-notify-fcm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nylo-core%2Flaravel-notify-fcm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nylo-core%2Flaravel-notify-fcm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nylo-core","download_url":"https://codeload.github.com/nylo-core/laravel-notify-fcm/tar.gz/refs/heads/2.x","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nylo-core%2Flaravel-notify-fcm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29171328,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T16:33:35.550Z","status":"ssl_error","status_checked_at":"2026-02-06T16:33:30.716Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase-cloud-messaging","flutter","flutter-firebase-cloud-messaging","flutter-notification","laravel"],"created_at":"2025-10-23T00:55:56.820Z","updated_at":"2026-02-06T18:13:50.528Z","avatar_url":"https://github.com/nylo-core.png","language":"Dart","funding_links":["https://github.com/sponsors/agordn52"],"categories":[],"sub_categories":[],"readme":"# Laravel Notify Fcm\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/nylo-core/laravel-notify-fcm/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/nylo-core/laravel-notify-fcm?style=plastic\" alt=\"Latest Release Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/nylo-core/laravel-notify-fcm/releases/latest\"\u003e\u003cimg src=\"https://img.shields.io/github/license/nylo-core/laravel-notify-fcm?style=plastic\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/nylo-core/laravel-notify-fcm\"\u003e\u003cimg alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/nylo-core/laravel-notify-fcm?style=plastic\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nLaravel Notify Fcm is a package for sending notifications to your Flutter app using Laravel FCM.\n\n## Getting started\n\n### Installation\n\nAdd the following to your `pubspec.yaml` file:\n\n``` yaml\ndependencies:\n  laravel_notify_fcm: ^2.1.5\n```\n\nor with Dart:\n\n``` bash\ndart pub add laravel_notify_fcm\n```\n\n### Requirements\n\n- [Laravel](https://laravel.com/)\n- [Laravel Sanctum](https://laravel.com/docs/11.x/sanctum)\n- [laravel-fcm-channel](https://github.com/nylo-core/laravel-fcm-channel)\n\n### Usage\n\nUsing Nylo? Run the following command to scaffold the necessary files for FCM notifications.\n\n``` bash\ndart run laravel_notify_fcm:main install\n```\n\nThis will create the following files:\n- Provider - `FirebaseMessagingProvider` (lib/providers/firebase_messaging_provider.dart)\n  - This will initialize the package to send notifications to the device.\n- Page - `EnableNotificationsPage` (lib/pages/enable_notifications_page.dart)\n  - This page will request permission to send notifications to the device.\n  - You can navigate to it by calling `routeTo(EnableNotificationsPage.path);`.\n- Event - `RegisterForNotificationsEvent` (lib/events/register_for_notifications_event.dart)\n  - This event will be dispatched to request permission to send notifications to the device.\n\n``` dart\nimport 'package:laravel_notify_fcm/laravel_notify_fcm.dart';\n\n```\n\n### Adding a device to the database\n\nFirst, call `init` to initialize the package.\n\nParameters:\n- `url` - The URL to your Laravel app where the package will send the device token.\n- `firebaseMessaging` - The FirebaseMessaging instance.\n- `debugMode` - Whether to enable debug mode. The default is `false`.\n\n```dart\nFirebaseMessaging firebaseMessaging = FirebaseMessaging.instance;\n\nawait LaravelNotifyFcm.instance.init(\n  url: 'https://example.com/api/fcm',\n  firebaseMessaging: firebaseMessaging,\n);\n```\n\nThen, call `storeFcmDevice` to add the device to the database.\n\n``` dart\n\nawait LaravelNotifyFcm.storeFcmDevice(\n  sanctumToken: 'from your Laravel user',\n);\n```\n\nThis method will request permission to send notifications to the device. If the user accepts, the device will be added to the database.\n\nView our [docs](https://github.com/nylo-core/laravel-fcm-channel) on Laravel FCM Channel to start sending notifications.\n\nTry the [example](/example) app to see how it works.\n\n## Changelog\nPlease see [CHANGELOG](https://github.com/nylo-core/laravel-notify-fcm/blob/master/CHANGELOG.md) for more information what has changed recently.\n\n## Social\n* [Twitter](https://twitter.com/nylo_dev)\n\n## Licence\n\nThe MIT License (MIT). Please view the [License](https://github.com/nylo-core/laravel-notify-fcm/blob/main/LICENSE) File for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnylo-core%2Flaravel-notify-fcm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnylo-core%2Flaravel-notify-fcm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnylo-core%2Flaravel-notify-fcm/lists"}