{"id":13773185,"url":"https://github.com/redjanym/php-firebase-cloud-messaging","last_synced_at":"2025-10-01T23:30:30.276Z","repository":{"id":45631693,"uuid":"83146785","full_name":"redjanym/php-firebase-cloud-messaging","owner":"redjanym","description":"PHP API for Firebase Cloud Messaging from Google","archived":false,"fork":true,"pushed_at":"2022-07-14T18:59:25.000Z","size":43,"stargazers_count":35,"open_issues_count":0,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T08:16:29.023Z","etag":null,"topics":["android","fcm","google-firebase","hacktoberfest","ios","notifications"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sngrl/php-firebase-cloud-messaging","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redjanym.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-25T16:53:02.000Z","updated_at":"2024-08-30T21:37:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/redjanym/php-firebase-cloud-messaging","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redjanym%2Fphp-firebase-cloud-messaging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redjanym%2Fphp-firebase-cloud-messaging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redjanym%2Fphp-firebase-cloud-messaging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redjanym%2Fphp-firebase-cloud-messaging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redjanym","download_url":"https://codeload.github.com/redjanym/php-firebase-cloud-messaging/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234909086,"owners_count":18905504,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["android","fcm","google-firebase","hacktoberfest","ios","notifications"],"created_at":"2024-08-03T17:01:12.451Z","updated_at":"2025-10-01T23:30:30.271Z","avatar_url":"https://github.com/redjanym.png","language":"PHP","funding_links":["https://www.paypal.me/ymerajredjan'"],"categories":["PHP"],"sub_categories":[],"readme":"# PHP Firebase Cloud Messaging\n\n\u003ca href='https://www.paypal.me/ymerajredjan' target='_blank'\u003e\u003cimg height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi2.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n\nPHP SDK for Firebase Cloud Messaging from Google, supporting HTTP V1.\n\nSee original Firebase docs: https://firebase.google.com/docs/\n\n#Setup\nInstall via Composer:\n```\ncomposer require redjanym/php-firebase-cloud-messaging\n```\n\nOr add this to your composer.json and run \"composer update\":\n\n```\n\"require\": {\n    \"redjanym/php-firebase-cloud-messaging\": \"2.*\"\n}\n```\n\n# Send message to a Device\n```\nuse RedjanYm\\FCM\\Client;\nuse RedjanYm\\FCM\\Notification;\nuse RedjanYm\\FCM\\Recipient\\Device;\n\n$serviceAccountPath = '/path/to/service-account.json';\n$testToken = 'this-is-a-token';\n\n$client = new Client($serviceAccountPath);\n$recipient = new Device($testToken);\n$notification = new Notification($recipient, 'Title', 'Body', ['key' =\u003e 'value']);\n\n$client-\u003esend($notification);\n```\n\n# Topic Support\nThe current version does not have support for Topics. We are going to add it on v2.1.\n\n# Migrating from V1.\nUnfortunately V2 of this package introduces breaking changes. But the new structure of the SDK is still simple and very similar to the previous one. We are sure the migration is going to be very fast and easy.\n\n# Interpreting responses\nResponses given on the HTTP requests are standard according to the FCM documentations. You may find detailed specifications in this links:\n* https://firebase.google.com/docs/cloud-messaging/http-server-ref#interpret-downstream\n* https://firebase.google.com/docs/cloud-messaging/http-server-ref#error-codes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredjanym%2Fphp-firebase-cloud-messaging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredjanym%2Fphp-firebase-cloud-messaging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredjanym%2Fphp-firebase-cloud-messaging/lists"}