PHPackages                             sunaoka/push-notifications-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. sunaoka/push-notifications-php

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

sunaoka/push-notifications-php
==============================

Push notifications/messages for mobile devices

1.2.0(3mo ago)6542MITPHPPHP ^5.5 || ^7.0 || ^8.0CI passing

Since Oct 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/sunaoka/push-notifications-php)[ Packagist](https://packagist.org/packages/sunaoka/push-notifications-php)[ RSS](/packages/sunaoka-push-notifications-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (7)Dependencies (3)Versions (11)Used By (0)

Push notifications Library for PHP
==================================

[](#push-notifications-library-for-php)

[![Latest](https://camo.githubusercontent.com/fa34a8879216ed4c56a31d3ae128cd995b02d91cc2e032e43daf328f2c24ea4f/68747470733a2f2f706f7365722e707567782e6f72672f73756e616f6b612f707573682d6e6f74696669636174696f6e732d7068702f76)](https://packagist.org/packages/sunaoka/push-notifications-php)[![License](https://camo.githubusercontent.com/5ad4fb978acaf6addc54c523a698bb3ed1fbcfe7c5ad66803b67322a98e6b1ff/68747470733a2f2f706f7365722e707567782e6f72672f73756e616f6b612f707573682d6e6f74696669636174696f6e732d7068702f6c6963656e7365)](https://packagist.org/packages/sunaoka/push-notifications-php)[![PHP](https://camo.githubusercontent.com/9752b6d03c111ccb938761e570db6e95d1e8c41f5f27062977c006889cf5ed3b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73756e616f6b612f707573682d6e6f74696669636174696f6e732d706870)](composer.json)[![Test](https://github.com/sunaoka/push-notifications-php/actions/workflows/test.yml/badge.svg)](https://github.com/sunaoka/push-notifications-php/actions/workflows/test.yml)[![codecov](https://camo.githubusercontent.com/059f9436073df28f438778d7f54a67a94bce95b5968fe3f3ccaf380e6d4fe28b/68747470733a2f2f636f6465636f762e696f2f67682f73756e616f6b612f707573682d6e6f74696669636174696f6e732d7068702f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/sunaoka/push-notifications-php)

---

Supported Protocols
-------------------

[](#supported-protocols)

ProtocolSupportedDriverOptionsAPNs ([Token Based](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_token-based_connection_to_apns))✓`APNs\Token``APNs\Token\Option`APNs ([Certificate Based](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_certificate-based_connection_to_apns))✓`APNs\Certificate``APNs\Certificate\Option`APNs ([Binary Provider](https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/BinaryProviderAPI.html))FCM ([HTTP v1](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages/send))✓`FCM\V1``FCM\V1\Option`FCM ([Legacy JSON](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream-http-messages-json))FCM ([Legacy Plain Text](https://firebase.google.com/docs/cloud-messaging/http-server-ref#downstream-http-messages-plain-text))FCM ([XMPP](https://firebase.google.com/docs/cloud-messaging/xmpp-server-ref))Installation
------------

[](#installation)

```
composer require sunaoka/push-notifications-php
```

Basic Usage
-----------

[](#basic-usage)

For example, in the case of APNs [Token Based](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_token-based_connection_to_apns).

```
