News Feed
Jobs Feed
Sections



Recent Jobs

News Archive
feed this:

PHPMaster.com:
Understanding OAuth - Tweeting from Scratch, Part 2
October 25, 2011 @ 10:09:48

On PHPMaster.com today they're posted the second part of their OAuth series showing you how to use the authentication mechanism to connect to Twitter's API. (Part one is here.

Welcome back to Understanding OAuth - Tweeting from Scratch. This is Part 2 of the two-part series and picks up right where we left off in Part 1 with your returned Access Credentials. Since obtaining the credentials is the grueling part of the process, there's not much more left to do except posting a tweet on the user's behalf. Hopefully you'll find the final steps to be a lot easier to follow and more fun to implement.

They show you how to store the credentials from Part 1 into your session for safe keeping and include a simple form you will use to send a tweet to Twitter. They choose to manually build the HTTP POST request, including the credential headers along with the payload (oauth_consumer_key, oauth_signature, oauth_token, etc).

0 comments voice your opinion now!
oauth tutorial tweet series connection authentication api



Phil Sturgeon's Blog:
Twiny-Framework the framework small enough to tweet
December 18, 2009 @ 09:28:18

Inspired by Twitto, Phil Sturgeon has create his own tweetable framework to try to "one-up" Fabien Potencier's version.

This idea was not my own, but was inspired by Twitto. During some extreme boredom at work I decided to "one-up" this teeny-tiny framework and improve on it. My framework does this by allowing you to run Controller files and methods in a similar way to CodeIgniter, while Twitto only has the ability to run functions from a single file.

He includes both the code for the "framework" and an example of how to create a simple controller class to work with it. He also shows how you can get a bit more MVC with it by adding in a view layer.

1 comment voice your opinion now!
twiny framework tweet mvc


PHPImpact Blog:
The PHP framework that fits in a tweet!
March 09, 2009 @ 11:16:43

In the spirit of making the most out of the room you have Fererico Cargnelutti has pointed out a framework in a tweet (on Twitter) with some of the new PHP 5.3 additions - Twitto.

Twitto is the smallest and fastest PHP Web framework, and the first one to use the newest features of PHP 5.3. Packed in less than 140 characters, it fits in a tweet! Despite its size, Twitto is bundled with a default controller, is E_STRICT compliant, and generates an error if you try to access a controller that does not exist.

It was developed by Fabien Potencier (of symfony framework fame) as a part of the 140 Characters Webapp Challenge

0 comments voice your opinion now!
framework tweet twitter fabienpotencier symfony character webapp challenge


Doug Brown's Blog:
Use PHP to Twitter Your Tweets
January 13, 2009 @ 07:57:34

Doug Brown has posted a quick tutorial showing how to use the cURL extension in PHP to send tweets off to the Twitter API.

I recently got an email from a reader asking me if I could help them with a small script to post updates to a Twitter account using PHP. I figured this might be something that a few others might be interested in, so I decided to post about it.

His script opens a connection to the "twitter.com/statuses/update.xml" file and posts the username, password and contents of the tweet. If it returns a 200 code (the HTTP "Success" code), then all is well and it was posted. Of course, this simple script is just a start - he recommends other things to add like more input validation, making it into a class rather than procedural and adding in some Javascript to check the length of the tweet.

0 comments voice your opinion now!
twitter tweet curl extension tutorial javascript input validate oop



Community Events





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


api framework custom language phpunit symfony2 series community application security unittest opinion interview introduction test podcast development release manifesto conference

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