 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
PHPBuilder.com: Oauth Authentication for Social Apps in PHP
by Chris Cornutt February 08, 2013 @ 10:27:18
On PHPBuilder.com today there's a tutorial introducing you to OAuth and how to use it in your PHP applications.
Oauth is an open standard for authorization that allows secure authorization from web, mobile and desktop applications. This standard allows a third-party application to gain access to a HTTP service, i.e. it enables users to share their resources from one website with another website without having to give out their credentials (usually username and password). [...] Oauth authorization is carried out in 3 steps: obtain a request token, authorize request token and exchange request token for an access token.
They introduce you to some of the basic concepts behind OAuth and how the process works (complete with a handy graphic). They then show how to use OAuth to connect to the Facebook API, both in Javascript then PHP. This is followed with two other examples referencing popular social sites Twitter and Foursquare, hitting their APIs with simple authentication requests.
voice your opinion now!
oauth authentication social application twitter facebook foursquare tutorial
Gonzalo Ayuso: How to configure Symfony's Service Container to use Twitter API
by Chris Cornutt February 05, 2013 @ 10:53:19
In this recent post to his site Gonzalo Ayuso shows how to use the Symfony2 service container to interact directly with the Twitter API via an OAuth plugin.
If we are working within a Symfony2 application or a PHP application that uses the Symfony's Dependency injection container component you can easily integrate this simple script in the service container. I will show you the way that I use to do it.
His sample code uses the Guzzle HTTP library and some configuration options from a YAML file to create a new service hooked into the Twitter API with his credentials. He then imports it via his services configuration and shows an example of it in action - getting the latest contents of his timeline.
voice your opinion now!
symfony2 service container guzzle twitter api
Lorna Mitchell: How NOT to Design Your API
by Chris Cornutt January 10, 2013 @ 10:46:04
Recently Lorna Mitchell asked the wide world of Twitter about some of their recommendations of things not to do when creating an API. In this new post to her site, she gathers together those responses including comments about documentation, consistency and response codes.
Recently I tweeted as a #linktuesday link the 10 Worst API Practices post from ProgrammableWeb. Today, in search of some concrete examples of APIs implementing unhelpful antipatterns, I sent out a tweet for help: "What's the most frustrating inconsistent/misleading bit of API you've seen? Looking for cautionary tales!" [...] In the raft of responses (and thankyou all, this was fabulous, helpful and entertaining in equal parts!), there were some definite patterns that I'd like to share with you, in no particular order.
Comments came in from all over and talked about things like:
- Response codes not matching the content (ex. 200 on an error)
- NullPointerExceptions
- Different endpoints for single vs collections
- Order-sensitive XML in requests
- Poor error handling
- Bad documentation
- Incorrect content type handling
So there you have it, the sins to avoid in your own APIs. If you've encountered any of these, please accept my condolences.
voice your opinion now!
api design response code error handling documentation opinion twitter
ScreenFony.com: Work with bootstrap, assetic and less
by Chris Cornutt September 25, 2012 @ 10:36:20
On the ScreenFony.com site there's a quick tutorial showing you how to get started with Symfony2+Twitter Bootstrap+Assetic+LESS in a basic application. Assetic is a library that helps with asset management and use and LESS is a CSS pre-processor that makes it simpler to work with your site's CSS.
Bootstrap is a well known and powerful front-end framework for fast prototyping, it uses LESS and it can be easily integrate in your Symfony applications with the help of assetic. In this post I'll show how to: Install bootstrap in you Symfony application, load it using assetic, and compile bootstrap LESS files with lessphp.
Using Composer, creating a new Symfony2 project is just a single command away. The just update the "composer.json" and run the install to get the other needed libraries (LESS and the Twitter Bootstrap). They help you set up some Assetic filters for LESS and provide a simple page to output the Bootstrap in your header.
voice your opinion now!
symfony2 assetic twitter bootstrap less css tutorial composer
Community News: Win a phpDay/jsDay 2012 Ticket
by Chris Cornutt March 29, 2012 @ 10:20:38
The jsDay/phpDay organizers have announced a contest to win a free ticket to this year's event(s), one for each conference:
GrUSP is organising a tweet contest and its prizes will be two tickets, one for each conference. The contest will start today (March 29th) at 1pm CEST and will end April 1st at 7pm CEST.
Anyone can enter - all you have to do is tweet a post with a few things: the "#grsup" hashtag, a mention of the twitter accounts for the events, a link to the conference site and something about the event. Be sure and get those tweets posted before April 1st a 9am CEST - they'll pick the winners soon after! (Oh and multiple entries are accepted so the more you tweet, the better your chances!)
voice your opinion now!
jsday12 phpday12 ticket contest win tweet twitter
Community News: Packing more PHP News in your day with PHP Quick Fix
by Chris Cornutt December 07, 2011 @ 11:35:53
If you're a regular reader of PHPDeveloper.org, you know that there's a few articles posted here (almost) daily about what's happening in the PHP world. Unfortunately, this only scratches the surface of the quality content that's out there. In an effort to provide more PHP goodness to the community as a whole, PHP Quick Fix has been launched - a service linking to stories that don't make it on PHPDeveloper.org.
All of the stories on PHP Quick Fix (you can also follow it on twitter) are still hand-selected out of the mounds of PHP content that shows every day to ensure the best quality. There's no automatic syndication here - just more good, useful PHP (and related topics) to add to your day.
Additionally, if you're interested to see how it all works (thanks to a GimmeBar backend) check out this post on blog.phpdeveloper.org.
voice your opinion now!
phpquickfix news community twitter rss feed
Kevin Schroeder's Blog: What programming rules should you ALWAYS follow?
by Chris Cornutt November 09, 2011 @ 09:20:37
In a quick new post today Kevin Schroeder asks his readers for feedback on what programming rules you should always follow in your development practices.
Earlier today, more for my own interest, I asked the question on Twitter "What programming rules should you ALWAYS follow, regardless of the scenario you're working in?" In other words, are there programming rules that you ALWAYS should follow. It doesn't matter if it's a script to copy a bunch of files for a one time migration or if you're building the next Facebook (DON'T try to build the next Facebook. You will fail miserably. Build something else). In other words, what was the purist of programming rules.
Responses he received ranged from the simple to slightly more complex including:
- Always comment your code
- Test your code
- Use source control
- "Think. Think again. Then write code"
- Use a good debugger to help track down problems
- Make effective use of logging/output
voice your opinion now!
programming rules opinion recommendation twitter
|
Community Events
Don't see your event here? Let us know!
|