Loading...
 
Skip to main content

Push notifications

In Tiki25, we added support for Realtime Tiki. We'll let this mature a bit and explore a Web Push NotificationsQuestion package in Tiki26.

In this page I describe some package proposals that I found, Do not hesitate to add other packages if you have an idea.

This package is available at https://packagist.org/packages/minishlink/web-pushQuestion,

This is the most popular one I found, it allows to send notifications to terminals whose server delivers the Web Push notifications as described in the Web Push protocol. As it is standardized.

Advantage

  • The library is very popular with more than 2,811,514 installations
  • There is an active community around the library, see: https://github.com/web-push-libs/web-push-phpQuestion.
  • Easy integration and does not require any other installation

Disadvantages

  • There is no support and maintenance for older versions of PHP (from 7.2)

spomky-labs/web-push-lib

This package is available at https://packagist.org/packages/spomky-labs/web-push-libQuestion

This library also allows notifications to be sent to compatible browsers.

Advantage

  • Easy to integrate as for the first

Disadvantages

  • it's not too popular with just 4,217 installs.
  • Requires an additional library installation: nyholm/prs7 and symfony/http-client


laravel-notification-channels/webpush

This package is available at https://packagist.org/packages/laravel-notification-channels/webpushQuestion,
It's also a good library for web push, but its implementation is made with the Laravel framework, so with Tiki it really won't be the right choice.

Advantage

  • Easy to integrate as for the first
  • Offers several options

Disadvantages

  • necessarily linked to the Laravel framework


Please add other package proposals that you find.

Mercure


Related links

Show PHP error messages