{"id":34000891,"url":"https://github.com/dimajolkin/symfony-firebase-notifier","last_synced_at":"2026-03-17T22:38:41.381Z","repository":{"id":245709423,"uuid":"818646667","full_name":"dimajolkin/symfony-firebase-notifier","owner":"dimajolkin","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-24T13:48:31.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T18:52:28.691Z","etag":null,"topics":["firebase","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimajolkin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-06-22T12:43:57.000Z","updated_at":"2025-08-24T13:43:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef63f95f-2379-433d-a31a-d9baa19f6654","html_url":"https://github.com/dimajolkin/symfony-firebase-notifier","commit_stats":null,"previous_names":["dimajolkin/symfony-firebase-notifier"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dimajolkin/symfony-firebase-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimajolkin%2Fsymfony-firebase-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimajolkin%2Fsymfony-firebase-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimajolkin%2Fsymfony-firebase-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimajolkin%2Fsymfony-firebase-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimajolkin","download_url":"https://codeload.github.com/dimajolkin/symfony-firebase-notifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimajolkin%2Fsymfony-firebase-notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30633522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"last_error":"SSL_read: 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","symfony"],"created_at":"2025-12-13T09:38:51.814Z","updated_at":"2026-03-17T22:38:41.369Z","avatar_url":"https://github.com/dimajolkin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebase Notifier\n\n### Install\n\n```bash\n   composer required dimajolkin/symfony-firebase-notifier\n```\n### Docs\nProvides Firebase integration for Symfony Notifier.\n\nAdapted for using http\n\nBase copy from : https://github.com/symfony/firebase-notifier\n\n```php\n\ninclude __DIR__ .'/../vendor/autoload.php';\n\nuse Dimajolkin\\SymfonyFirebaseNotifier\\Credential;\nuse Dimajolkin\\SymfonyFirebaseNotifier\\FirebaseTransport;\nuse Dimajolkin\\SymfonyFirebaseNotifier\\MessageType\\TargetMessageOptions;\nuse Dimajolkin\\SymfonyFirebaseNotifier\\Notification\\AndroidNotification;\nuse Dimajolkin\\SymfonyFirebaseNotifier\\Notification\\CommonNotification;\nuse Symfony\\Component\\Notifier\\Chatter;\nuse Symfony\\Component\\Notifier\\Exception\\TransportException;\nuse Symfony\\Component\\Notifier\\Message\\ChatMessage;\n\n$file = file_get_contents('......json');\n\n$token = Credential::fromServiceAccountContent($file)-\u003egetToken();\n\n$chatter = new Chatter(new FirebaseTransport($token));\n\n$chatMessage = new ChatMessage('super text');\n\n$options = new TargetMessageOptions(\n    token: '....',\n    common: new CommonNotification(\n      title: 'incident title',\n      body: 'test message',\n    ),\n    android: new AndroidNotification(\n        clickAction: 'open_incident_view',\n    ),\n    data: [\n        'id' =\u003e '54841',\n        'type' =\u003e 'incident',\n        'title' =\u003e 'incident title',\n        'message' =\u003e 'incident message',\n    ],\n);\n\n// Add the custom options to the chat message and send the message\n$chatMessage-\u003eoptions($options);\ntry {\n    $chatter-\u003esend($chatMessage);\n} catch (TransportException $exception) {\n    echo $exception-\u003egetMessage();\n}\n\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimajolkin%2Fsymfony-firebase-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimajolkin%2Fsymfony-firebase-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimajolkin%2Fsymfony-firebase-notifier/lists"}