Download the PHP package phpbb/webpushnotifications without Composer

On this page you can find all versions of the php package phpbb/webpushnotifications. 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 webpushnotifications

phpBB Browser Push Notifications

This is the repository for the development of the phpBB Browser Push Notifications extension.

Build Status

An official phpBB extension that allows board users to receive browser-based push notifications.

Important: Only official release versions validated by the phpBB Extensions Team should be installed on a live forum. Pre-release (beta, RC) versions downloaded from this repository are only to be used for testing on offline/development forums and are not officially supported.

Contributing

Please fork this repository and submit a pull request to contribute to this extension.

To run this extension from the repo (and not from a pre-built package) on a local server, perform the following tasks:

Browser Support

Web Browser Platform Web Push Notification Support Background Notification Support (When Browser Closed)
Google Chrome macOS ✅ Yes ❌ No (unless running in the background)
Windows ✅ Yes ❌ No (unless running in the background)
iOS ❌ No ❌ No
Android ✅ Yes ✅ Yes
Safari macOS ✅ Yes ✅ Yes
iOS ✅ Yes ✅ Yes (site must be added to Home Screen first)
Microsoft Edge macOS ✅ Yes ❌ No (unless running in the background)
Windows ✅ Yes ❌ No (unless running in the background)
iOS ❌ No ❌ No
Android ✅ Yes ✅ Yes
Mozilla Firefox macOS ✅ Yes ❌ No
Windows ✅ Yes ❌ No
iOS ❌ No ❌ No
Android ✅ Yes ❌ No
Opera macOS ✅ Yes ❌ No
Windows ✅ Yes ❌ No
iOS ❌ No ❌ No
Android ✅ Yes ❌ No

(unless running in the background) means the browsers have background processes running (they’re not fully quit).

More info here https://caniuse.com/push-api

Testing Push Notifications

Testing push notifications necessitates user-to-user interactions to observe the notification behavior accurately. Follow the steps outlined below to effectively test push notifications (the browser recommendations are what we have seen work in local environments):

  1. User Account Setup:

    • Create at least two distinct board user accounts for testing purposes.
    • Using Google Chrome, visit UCP -> Board Preferences -> Edit notification options for User Account 1 and enable Push Notifications (and enable all web push notification types if necessary). Your browser may ask you to allow notifications, which you should accept. Leave Chrome open and running the background.
  2. Message, Quote, or Reply Interaction:

    • Initiate a user-to-user interaction by performing one of the following actions using User Account 2 in separate browser such as Firefox, Edge or Safari:
      • Private Message: Send a direct message from User Account 2 to User Account 1.
      • Quote: Quote a post or message authored by User Account 1 using User Account 2.
      • Reply: Respond to a post or message authored by User Account 1 using User Account 2.
  3. Observing Push Notifications:

    • Once the interaction is performed from User Account 2 to engage with User Account 1, you promptly should see a notification from Google Chrome for User Account 1.
  4. Caveats for Local Testing
    • Local testing of Push Notifications only works from a http://localhost address or if your local test server has a secure SSL certificate, e.g.: https://local.phpbb.board.
    • Depending on your local server's setup, operating system, and browsers, it is still possible that testing push notifications may not work (for example, in a local environment running on macOS, only Chrome will show notifications).

License

GNU General Public License v2


All versions of webpushnotifications with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
composer/installers Version ~1.0
minishlink/web-push Version ^7.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 phpbb/webpushnotifications contains the following files

Loading the files please wait ....