Making RESTful Requests in PHP

How to GET, POST, PUT, & DELETE in PHP

APIs have become a very commonplace part of many popular web sites and services… especially REST APIs. I’ve already discussed how you can roll your own REST API for your PHP apps, but I’ve also received countless requests to go over how to actually make RESTful requests. That’s exactly what we’ll take a look at in this article. Before we dive in, however, I want to make sure you’ve got a basic understanding of how REST APIs work, so if you’re a bit shaky or unfamiliar with the concept, head on over to my previous article on REST and read up (you don’t need to go over the implementation stuff if you don’t want, just read the first part of the article). Seriously, do it… this article is written with the assumption you’re familiar with the concepts of REST.

Anyway, without any further delay, let’s take a look at what we’re going to cover…

Read the rest of this entry »

Create a REST API with PHP

Your apps never had it so good
Create

One of the latest (sort of) crazes sweeping the net is APIs, more specifically those that leverage REST. It’s really no surprise either, as consuming REST APIs is so incredibly easy… in any language. It’s also incredibly easy to create them as you essentially use nothing more than an HTTP spec that has existed for ages. One of the few things that I give Rails credit for is its well thought-out REST support, both for providing and consuming these APIs (as its been explained by all the Rails fanboys I work with).

Seriously, if you’ve never used REST, but you’ve ever had to work with (or worse, create) a SOAP API, or simply opened a WSDL and had your head explode, boy do I have good news for you!

Read the rest of this entry »

Working With the Aptana PHP Editor

I recently created a screencast for Aptana’s PHP Editor, and thought I would share it.

I’m also posting this since we recently relaunched our screencast site, http://tv.aptana.com. It’s actually really cool as its running entirely on Aptana Jaxer, and built with the soon-to-be released Active JS framework. I’ll soon be posting about the process of creating the site, but for now I’m happy to say that this is the first (to my knowledge) site written entirely in JavaScript that leverages Jaxer as a back-end for server side JavaScript.

Beautiful Indie Game Trailer

I know this doesn’t really fit into the general theme of this site, but I thought this was really cool and wanted to share it anyway. Not much else to say, so enjoy!

Blueberry Garden (sneak peak trailer) from Erik Svedäng on Vimeo.

Workaround for Ubuntu 8.10 mouse bug

Ubuntu 8.10 has a massive bug in the xorg window code at the moment. Originally reported in November when 8.10 shipped, the lack of action on this is kind of unusual for the generally excellent Linux community.

However I’ve worked out a minimally intrusive hacktastic workaround.

Read the rest of this entry »