Download the PHP package pushpad/pushpad-php without Composer

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

Pushpad - Web Push Notifications

Build Status

Pushpad is a service for sending push notifications from websites and web apps. It uses the Push API, which is supported by all major browsers (Chrome, Firefox, Opera, Edge, Safari).

Notifications are delivered in real time even when the users are not on your website and you can target specific users or send bulk notifications.

Installation

Composer

This package requires PHP 8.0+ with the curl extension.

Install the SDK via Composer:

Then include Composer's autoloader:

Manual installation

Clone the repository and require the bootstrap file in your project:

Getting started

First sign up to Pushpad and create a project.

Configure the SDK with your credentials before you make any API calls:

Collecting user subscriptions

Use the JavaScript SDK to subscribe users to push notifications (see the getting started guide).

When you need to sign a uid, generate the HMAC signature with:

Sending push notifications

Use Pushpad\Notification::create() (or the send() alias) to create and send a notification:

The response includes useful information:

Getting push notification data

Fetch a single notification and inspect its attributes:

List notifications for a project (pagination supported through the page query parameter):

Pass the project id as the second argument when you prefer not to rely on the globally configured Pushpad\Pushpad::$projectId:

If you need to refresh a previously loaded notification, call $notification->refresh() to hydrate the latest data from the API.

Scheduled notifications

Create a notification that will be sent later:

Cancel a scheduled notification when it is still pending:

Getting subscription count

Retrieve the number of subscriptions associated with a project, optionally filtered by user IDs or tags:

The second argument lets you override the project id if you did not configure Pushpad\Pushpad::$projectId or you need to switch project on the fly.

Getting push subscription data

Fetch subscriptions with optional filters and pagination:

Load a specific subscription when you already know its id:

Updating push subscription data

Although tags and user IDs are usually managed from the JavaScript SDK, you can also update them from server:

Importing push subscriptions

To import existing subscriptions or seed test data use Pushpad\Subscription::create():

Typically subscriptions are collected from the browser using the JavaScript SDK; server-side creation should be reserved for migrations and special workflows.

Deleting push subscriptions

Delete subscriptions programmatically (use with care, the operation is irreversible):

Managing projects

Projects can also be managed via the API for automation use cases:

Managing senders

Senders hold the VAPID credentials used for Web Push:

License

The library is available as open source under the terms of the MIT License.


All versions of pushpad-php with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
ext-curl 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 pushpad/pushpad-php contains the following files

Loading the files please wait ...