├── .gitignore ├── .scrutinizer.yml ├── .travis.yml ├── LICENSE ├── README.md ├── composer.json ├── phpunit.xml.dist ├── src └── Zbox │ └── UnifiedPush │ ├── Dispatcher.php │ ├── Exception │ ├── BadMethodCallException.php │ ├── ClientException.php │ ├── DispatchMessageException.php │ ├── DomainException.php │ ├── InvalidArgumentException.php │ ├── InvalidRecipientException.php │ ├── MalformedNotificationException.php │ └── RuntimeException.php │ ├── Message │ ├── MessageBase.php │ ├── MessageCollection.php │ ├── MessageInterface.php │ ├── RecipientDevice.php │ └── Type │ │ ├── APNS.php │ │ ├── APNSAlert.php │ │ ├── GCM.php │ │ ├── MPNSBase.php │ │ ├── MPNSRaw.php │ │ ├── MPNSTile.php │ │ └── MPNSToast.php │ ├── Notification │ ├── Notification.php │ ├── NotificationBuilder.php │ ├── PayloadHandler.php │ ├── PayloadHandler │ │ ├── APNS.php │ │ ├── GCM.php │ │ └── MPNS.php │ └── PayloadHandlerInterface.php │ ├── NotificationService │ ├── APNS │ │ ├── Response.php │ │ ├── ResponseFeedback.php │ │ ├── ServiceClient.php │ │ └── ServiceFeedbackClient.php │ ├── GCM │ │ ├── Response.php │ │ └── ServiceClient.php │ ├── MPNS │ │ ├── Response.php │ │ └── ServiceClient.php │ ├── NotificationServices.php │ ├── ResponseHandler.php │ ├── ResponseInterface.php │ ├── ServiceClientBase.php │ ├── ServiceClientFactory.php │ ├── ServiceClientInterface.php │ └── ServiceCredentialsFactory.php │ ├── Resources │ ├── example_credentials.json.dist │ └── notification_services.json │ └── Utils │ ├── ClientCredentials │ ├── CredentialsInterface.php │ ├── CredentialsMapper.php │ └── DTO │ │ ├── AuthToken.php │ │ ├── NullCredentials.php │ │ └── SSLCertificate.php │ ├── DateTimeHelper.php │ ├── JsonEncoder.php │ └── SocketClient.php └── tests ├── Zbox └── UnifiedPush │ ├── DispatcherTest.php │ ├── Message │ ├── MessageCollectionTest.php │ ├── MessageTest.php │ └── RecipientDeviceTest.php │ ├── Notification │ └── NotificationBuilderTest.php │ ├── NotificationService │ ├── APNSServiceClientTest.php │ ├── CredentialsTest.php │ ├── GCMServiceClientTest.php │ ├── MPNSServiceClientTest.php │ └── ServiceClientFactoryTest.php │ └── Resources │ ├── certificate.test.pem │ ├── credentials.test.json │ └── services.test.json └── bootstrap.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/.gitignore -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Dispatcher.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Dispatcher.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Exception/BadMethodCallException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Exception/BadMethodCallException.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Exception/ClientException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Exception/ClientException.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Exception/DispatchMessageException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Exception/DispatchMessageException.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Exception/DomainException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Exception/DomainException.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Exception/InvalidArgumentException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Exception/InvalidArgumentException.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Exception/InvalidRecipientException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Exception/InvalidRecipientException.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Exception/MalformedNotificationException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Exception/MalformedNotificationException.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Exception/RuntimeException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Exception/RuntimeException.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/MessageBase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/MessageBase.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/MessageCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/MessageCollection.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/MessageInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/MessageInterface.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/RecipientDevice.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/RecipientDevice.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/Type/APNS.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/Type/APNS.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/Type/APNSAlert.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/Type/APNSAlert.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/Type/GCM.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/Type/GCM.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/Type/MPNSBase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/Type/MPNSBase.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/Type/MPNSRaw.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/Type/MPNSRaw.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/Type/MPNSTile.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/Type/MPNSTile.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Message/Type/MPNSToast.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Message/Type/MPNSToast.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Notification/Notification.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Notification/Notification.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Notification/NotificationBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Notification/NotificationBuilder.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Notification/PayloadHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Notification/PayloadHandler.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Notification/PayloadHandler/APNS.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Notification/PayloadHandler/APNS.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Notification/PayloadHandler/GCM.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Notification/PayloadHandler/GCM.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Notification/PayloadHandler/MPNS.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Notification/PayloadHandler/MPNS.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Notification/PayloadHandlerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Notification/PayloadHandlerInterface.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/APNS/Response.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/APNS/Response.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/APNS/ResponseFeedback.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/APNS/ResponseFeedback.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/APNS/ServiceClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/APNS/ServiceClient.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/APNS/ServiceFeedbackClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/APNS/ServiceFeedbackClient.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/GCM/Response.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/GCM/Response.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/GCM/ServiceClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/GCM/ServiceClient.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/MPNS/Response.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/MPNS/Response.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/MPNS/ServiceClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/MPNS/ServiceClient.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/NotificationServices.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/NotificationServices.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/ResponseHandler.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/ResponseHandler.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/ResponseInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/ResponseInterface.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/ServiceClientBase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/ServiceClientBase.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/ServiceClientFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/ServiceClientFactory.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/ServiceClientInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/ServiceClientInterface.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/NotificationService/ServiceCredentialsFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/NotificationService/ServiceCredentialsFactory.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Resources/example_credentials.json.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Resources/example_credentials.json.dist -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Resources/notification_services.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Resources/notification_services.json -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Utils/ClientCredentials/CredentialsInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Utils/ClientCredentials/CredentialsInterface.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Utils/ClientCredentials/CredentialsMapper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Utils/ClientCredentials/CredentialsMapper.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Utils/ClientCredentials/DTO/AuthToken.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Utils/ClientCredentials/DTO/AuthToken.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Utils/ClientCredentials/DTO/NullCredentials.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Utils/ClientCredentials/DTO/NullCredentials.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Utils/ClientCredentials/DTO/SSLCertificate.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Utils/ClientCredentials/DTO/SSLCertificate.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Utils/DateTimeHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Utils/DateTimeHelper.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Utils/JsonEncoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Utils/JsonEncoder.php -------------------------------------------------------------------------------- /src/Zbox/UnifiedPush/Utils/SocketClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/src/Zbox/UnifiedPush/Utils/SocketClient.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/DispatcherTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/DispatcherTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/Message/MessageCollectionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/Message/MessageCollectionTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/Message/MessageTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/Message/MessageTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/Message/RecipientDeviceTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/Message/RecipientDeviceTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/Notification/NotificationBuilderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/Notification/NotificationBuilderTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/NotificationService/APNSServiceClientTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/NotificationService/APNSServiceClientTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/NotificationService/CredentialsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/NotificationService/CredentialsTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/NotificationService/GCMServiceClientTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/NotificationService/GCMServiceClientTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/NotificationService/MPNSServiceClientTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/NotificationService/MPNSServiceClientTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/NotificationService/ServiceClientFactoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/NotificationService/ServiceClientFactoryTest.php -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/Resources/certificate.test.pem: -------------------------------------------------------------------------------- 1 | need replacement -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/Resources/credentials.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/Resources/credentials.test.json -------------------------------------------------------------------------------- /tests/Zbox/UnifiedPush/Resources/services.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/Zbox/UnifiedPush/Resources/services.test.json -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhukov-alex/UnifiedPush/HEAD/tests/bootstrap.php --------------------------------------------------------------------------------