News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ade Slade's Blog:
Implementing Twitter sign-in with Silex and PHP
August 17, 2011 @ 09:55:40

Ade Slade has written up a quick new post to his blog today showing how you can use the lightweight Silex framework to link your login with Twitter and validate users from their API.

For those not acquainted with Silex: Silex is a PHP microframework for PHP 5.3 A microframework provides the guts for building simple single-file apps. It's awesome. For the example, I've setup a virtual host of example.local on my development machine.

He includes the contents of the .htaccess you'll need to get the rewrite to work for Silex, a link to the OAuth extension you'll need to install for PHP and the code to make the login and auth routes. You'll need to create a Twitter application for your site to get the OAuth secret key to make the authentication work. You can see the complete code here.

1 comment voice your opinion now!
twitter tutorial silex framework login authentication oauth api


blog comments powered by Disqus

Similar Posts

Ilia Alshanetsky's Blog: Filter Extension Revamped (and PHP 5.2 news)

SitePoint PHP Blog: Hashing Passwords with the PHP 5.5 Password Hashing API

SitePoint PHP Blog: Simple Captchas with PHP and GD

Zend Developer Zone: Creating Scalable Vector Graphs with PHP

Fabien Potencier: Packing a Symfony full-stack Framework Application in one File - Introduction


Community Events





Don't see your event here?
Let us know!


introduction laravel voicesoftheelephpant release tips development community language deployment series interview bugfix framework code zendserver conference api list podcast symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework