pushed / pushed-php-api-client
API client library for Pushed platform
Installs: 11 758
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-07-01 04:36:36 UTC
README
How to Install
Using Composer (Recommended)
-
Add
"pushed/pushed-php-api-client": "dev-master"
, to your composer.json file at the"require":
section. (Find more about composer.) -
Run the
composer update pushed/pushed-php-api-client --no-dev
command in your shell from your root directory.
Manual Installation
-
Download and extract the latest Pushed Official PHP API Client source code to your PHP project.
-
Require it in your app using the provided autoloader.
require_once "/path/to/Pushed/Pushed.php";
Basic Usage
App Notification
$params = [ 'app_key' => 'your_app_key', 'app_secret' => 'your_app_secret', 'content' => 'Your notification content', ]; (new Pushed())->push->toApp($params);
Channel Notification
$params = [ 'app_key' => 'your_app_key', 'app_secret' => 'your_app_secret', 'content' => 'Your notification content', 'target_alias' => 'your_channel_alias', ]; (new Pushed())->push->toChannel($params);
User Notification
$params = [ 'app_key' => 'your_app_key', 'app_secret' => 'your_app_secret', 'content' => 'Your notification content', 'target_alias' => 'destination_user_alias', 'access_token' => 'destination_user_access_token', ]; (new \Pushed())->push->toUser($params);
Pushed-ID Notification
$params = [ 'app_key' => 'your_app_key', 'app_secret' => 'your_app_secret', 'content' => 'Your notification content', 'target_alias' => 'destination_user_alias', 'pushed_id' => 'destination_user_pushed_id', ]; (new \Pushed())->push->toUser($params);
About Pushed
Pushed is your personal notification center with super awesome services. The app allows you to receive notifications when something important happens. Learn more aboute Pushed: pushed.co. If you find a bug or you think you can improve this script feel free to reach us at dev@pushed.co.
Packagist Site: https://packagist.org/packages/pushed/pushed-php-api-client