This git repository provides a quickstart demonstrating how to use Pusher on OpenShift in a PHP application.
Once you've created the quickstart, you'll need to create a Pusher account and add your authorization information to your Git repository. Making code changes will require you to set a public SSH key, and then to clone your new application Git repository onto your local machine. See the Getting Started page for more steps in this flow.
php/config.phpwith the credentials.
git add . git commit -m "my first commit" git push
https://myapp-<yournamespace>.rhcloud.com and click on the
Trigger Hello World button. This will result in a message being triggered and being broadcast to everybody viewing the page.
You can update the PHP in
php/trigger.php to change how the message is triggered.
php/index.php to change the channel that is subscribed to, the event which is bound to and how the event is handled.
Pusher documentation: http://pusher.com/docs
Debugging your application: http://pusher.com/docs/debugging
Pusher client and server libraries: http://pusher.com/docs/libraries
Pusher Support on StackOverflow: http://stackoverflow.com/questions/tagged/pusher