Documentation site and example code for using the TwitterOAuth library.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

TwitterOAuth

Documentation and demo site for the TwitterOAuth PHP library.

Development

  1. Register a Twitter app.
  2. Set http://localhost:8000/callback.php as a "Callback URL" in the newly registered application.
  3. Copy .env.template to .env.
  4. Set the CONSUMER_KEY and CONSUMER_SECRET in .env.
  5. Run ./scripts/dev.sh.
  6. Visit http://localhost:8000/.

Deploy

  1. Create a Heroku app.
  2. Register a Twitter app.
  3. Set Heroku config vars for CONSUMER_KEY, CONSUMER_SECRET, and OAUTH_CALLBACK. Optionally GOOGLE_ANALYTICS_ID and TEMPLATE_CACHE_ENABLED.
  4. Push code to Heroku.