Skip to content

pusher-community/pusher-php-silex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pusher Channel Authentication example using the PHP Silex Framework

An example using Pusher with the Silex PHP framework. The examples make use of the Pusher PHP library.

It was built upon the Getting Started with PHP on Heroku example.

Contents

The code in this repository provides examples of how to:

  • Trigger Events
  • Authenticate Private Channel Subscriptions

All the code can be found in web/index.php.

Todo

  • Authenticating Presence Channel Subscriptions
  • Get a list of channels from the Pusher HTTP API
  • Handle incoming WebHooks

Running Locally

Make sure you have PHP, Apache and Composer installed. Also, install the Heroku Toolbelt.

$ git clone git@github.com:pusher/pusher-php-silex-auth.git # or clone your own fork
$ cd pusher-php-silex-auth
$ composer update
$ foreman start web

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

Documentation

For more information on authenticating Pusher channel subscription see:

For more information about using PHP on Heroku, see these Dev Center articles:

About

An example of using Pusher with the PHP Silex framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •