Download the PHP package trin4ik/laravel-expo-push without Composer

On this page you can find all versions of the php package trin4ik/laravel-expo-push. 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 laravel-expo-push

Laravel Expo Push Notification Channel

Latest Version on Packagist Total Downloads

Simple and stupid package for send push notification with expo-notification service. \ No tests, no mans, no routes/controllers for get tokens from clients etc. Only channel. \ If u need more, use Alymosul/laravel-exponent-push-notifications

Installation

U can log query to expo notification service into database with payloads and responses.

Users expo tokens

U need add method routeNotificationForExpoPush any model, like User, who return expo token

Change log database

By default, log write to expo_push_notification table, u can change it in 2 step:

  1. extends Trin4ik\LaravelExpoPush\Models\ExpoPushNotification.php like:

  2. change in config/expo-push.php log/driver/instance to your new model:

Usage

Like other channels, u need create Notification

for more information about ExpoPush::create methods, look down

And usage like:

ExpoPush::create methods

Method Type Default Platform Description
data array null iOS & Android Any data to your app on click to push notification. Array converted to JSON, JSON may be up to about 4KiB
title string null iOS & Android Notification title
body string null iOS & Android Notification text
ttl int Android: 2419200
iOS: 0
iOS & Android TimeToLive, in seconds. Need to redelivery push
expiration int null iOS & Android Timestamp to expires message. Like ttl, but other format.
ttl takes precedence over expiration
priority enum(default, normal, high) default iOS & Android Delivery priority
categoryId string null iOS & Android ID of the notification category that this notification is associated with. Find out more about notification categories here. Must be on at least SDK 41 or bare workflow
subtitle string null iOS Only Notification subtitle
sound bool true iOS Only Play sound when the recipient receives this notification
badge int null iOS Only Number to display in the badge on the app icon. Specify zero to clear the badge
mutableContent bool null iOS Only Specifies whether this notification can be intercepted by the client app. In Expo Go, this defaults to true, and if you change that to false, you may experience issues. In standalone and bare apps, this defaults to false
channelId string null Android Only ID of the Notification Channel through which to display this notification. If an ID is specified but the corresponding channel does not exist on the device (i.e. has not yet been created by your app), the notification will not be displayed to the user

More info on Expo notification service message format

If new SDK release new format, u can create PR or use toArray() method in your Notification, like:

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Thanks

❤️ This package was generated using the Laravel Package Boilerplate. \ ❤️ More code spizjeno from Alymosul/laravel-exponent-push-notifications


All versions of laravel-expo-push with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
laravel/framework Version >=8.0
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 trin4ik/laravel-expo-push contains the following files

Loading the files please wait ....