Skip to content

Instantly share code, notes, and snippets.

@pgl
Last active August 29, 2015 14:01
Show Gist options
  • Save pgl/16b61b71d796ba7b7d75 to your computer and use it in GitHub Desktop.
Save pgl/16b61b71d796ba7b7d75 to your computer and use it in GitHub Desktop.
Pubnub one liners
php -r 'require "./Pubnub.php";
print_r((new Pubnub("demo"))->publish(
["channel" => "my_channel", "message" => $argv[1]]
));' \
"test message"
#!/bin/bash
php -r 'require "./Pubnub.php"; print_r((new Pubnub("demo"))->publish(["channel" => "my_channel", "message" => $argv[1]]));' $1
@stephenlb
Copy link

Snazzy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment