Download the PHP package subit/php-expo-sdk without Composer

On this page you can find all versions of the php package subit/php-expo-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-expo-sdk

Exponent Push Notification Server SDK

Server-side PHP library for working with Expo push notifications

Latest Version on Packagist Total Downloads

Contents

 

Installation

You can install the package via composer:

 

Usage (simple example)

Create an new Expo SDK client

Create the ExpoMessage you want to send to the client

Then use the Expo->sendPushNotification() method to send the ExpoMessage

That's it! The notification has now been sent to the Expo servers.

 

Expo methods

sendPushNotification(ExpoMessage) Sends an ExpoMessage
sendPushNotifications([ExpoMessage]) Sends multiple ExpoMessage
getPushNotificationReceipt($ticketId) Get delivery status for Android/iOS services (not client device)
getPushNotificationReceipts([$ticketId]) Get delivery status for Android/iOS services (not client devices)
isValidTokenFormat($token) Check if an expo token is of a valid format
isValidReceiptIdFormat($id) Check if a receipt id is of a valid format
chunkPushNotifications() Chunk notifications into approved request batch sizes
chunkPushNotificationReceiptIds Chunk notification receipt ids into approved request batch sizes

 

ExpoMessage options

Property iOS/Android Type Description
to() both string An Expo push token specifying the recipient of this message
jsonData() both string A JSON object delivered to your app. It may be up to 4KiB
title() both string The title to display in the notification
body() both string The message to display in the notification
ttl() both int Seconds the message may be kept around for redelivery
expiration() both int UNIX epoch timestamp. Same effect as ttl. ttl takes precedence
priority() both Priority The delivery priority of the message
subtitle() iOS string The subtitle to display in the notification below the title
enableSound() iOS Play a sound when the recipient receives this notification
disableSound() iOS Play no sound (default)
badge() iOS int Number to display in the badge on the app icon
channelId() Android string Channel through which to display this notification

For a more detailed description, refer to the Expo documentation https://docs.expo.io/versions/latest/guides/push-notifications/#formats

 

To be implemented/reworked:


All versions of php-expo-sdk with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version >=6.3
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package subit/php-expo-sdk contains the following files

Loading the files please wait ...