dev-master
9999999-dev https://github.com/pushed/pushed-php-api-clientAPI client library for Pushed platform
MIT
The Requires
- php >=5.3.0
notification push pushed
API client library for Pushed platform
Add "pushed/pushed-php-api-client": "dev-master"
, to your composer.json file at the "require":
section. (Find more about composer.), (*1)
Run the composer update pushed/pushed-php-api-client --no-dev
command in your shell from your root directory., (*2)
Download and extract the latest Pushed Official PHP API Client source code to your PHP project., (*3)
Require it in your app using the provided autoloader., (*4)
require_once "/path/to/Pushed/Pushed.php";
$params = [ 'app_key' => 'your_app_key', 'app_secret' => 'your_app_secret', 'content' => 'Your notification content', ]; (new Pushed())->push->toApp($params);
$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);
$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);
$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);
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., (*5)
Packagist Site: https://packagist.org/packages/pushed/pushed-php-api-client, (*6)
API client library for Pushed platform
MIT
notification push pushed