Download the PHP package justpush/justpush-php-sdk without Composer

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

JustPush - PHP SDK

Welcome to the official PHP SDK for JustPush! This SDK allows you to easily integrate with our powerful messaging platform, providing functionalities to create messages, retrieve messages, create topics, and update topics.

Features

Download the App in the App Stores

Installation

Install the SDK via Composer:

Basic Push Message

This is a basic example of sending a notification. ``

JustPush Message

Function Name Available Attributes Description
token string $token Set the user token / API token
message string $message The textual body of the message
title string $title The title of the message
topic string $topic Either the UUID or the name of the topic you want to send the message to
image string $url, ?string $caption Adds an image the to the message
images array $images Adds multiple images
button string $cta, string $url, bool $actionRequired Adds a button to the message
buttons array $buttons Adds multiple buttons to the message
sound string $sound Define the sound of the message
priority int $priority Manually set the priority, 2, 1, 0, -1, -2
highestPriority Set the message priority on 2
highPriority Set the message priority on 1
normalPriority Set the message priority on 0
lowPriority Set the message priority on -1
lowestPriority Set the message priority on -2
expiry int $expiry Set the expiry in Seconds
acknowledge bool $requiresAcknowledgement, bool $requiresRetry = false, int $retryInterval = 0, int $maxRetries = 0, bool $callbackRequired = false, ?string $callbackUrl = null, ?array $callbackParams = null Adds an acknowledgement to the messages

Defining the topic

Our goals it to keep the API as simple as possible. Therefore, you can send either:

Sending multiple images

When a message contains multiple images, the first image will be used for the push message banner.

Setting an Expiry

When an expiry is set, the message will have an TTL in seconds. After the expiry, in seconds, has expired, the message will automatically be hidden.

JustPush Topics

Function Name Available Attributes
__construct $token
token string $token
title ?string $title
topic ?string $topicUuid
avatar ?string $url, ?string $body

POST / Create A Topic

This is a basic example of creating a topic ``

PUT / Update A Topic

This is a basic example of updating a topic ``

GET / Get a topic

This is a basic example of creating a topic ``

Response Headers

Key Value Description
The amount of messages that you can send based on your active subscription
The amount of messages you have left for the current period in your subscription
The seconds till the monthly reset will be done.

OpenApi Spec

The package comes with an OpenAPI spec. Which can be found in the docs folder. Click Here

Changelog


All versions of justpush-php-sdk with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.2
php Version ^8.0
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 justpush/justpush-php-sdk contains the following files

Loading the files please wait ....