New Version of Windows Azure SDK for PHP (v 3.0) Available
June 7, 2012 update: The Microsoft Windows Azure team has released a new Windows Azure SDK for PHP. This release is part of an effort to keep PHP client libraries up to date with new Windows Azure features and to make PHP a first-class citizen in Windows Azure. The latest client libraries are on GitHub: https://github.com/WindowsAzure/azure-sdk-for-php. While the SDK hosted on CodePlex will continue to work for the foreseeable future, it is strongly recommended that new PHP/Windows Azure application use the SDK hosted on GitHub.
The work done by Maarten Balliauw and other contributors in building the SDK hosted on CodePlex was critical in unifying the PHP developer experience for Windows Azure. The Windows Azure team is grateful to these contributors for their pioneering work and looks forward to their continued support (and yours!) in adding to the new SDK on GitHub.
The Windows Azure Team
The Interoperability Team at Microsoft announced today that the production-ready 3.0 version of the Windows Azure SDK is now available. You can read about the details of the release here: http://blogs.msdn.com/b/interoperability/archive/2011/05/26/new-sdk-shows-how-to-leverage-the-scalability-of-windows-azure-with-php.aspx, but I wanted to share what I consider the highlights of the release in this post.
First, this release has a new Service Management API that makes it easy to scale PHP applications in Windows Azure. To showcase this API, the Interop team built and deployed an application called “Deal of the Day”, which allows you to actually win stuff..you can play here: http://dealoftheday.cloudapp.net/ (U.S. only). But, the main point of the application is to show developers how to scale a PHP application in Windows Azure, so the code is available on Github here: http://bit.ly/iPddwx. To learn more about new features, check out Maarten Balliauw’s beta release announcement. (Be sure to note the one breaking change he lists: Table storage entities now return DateTime objects instead of strings for Edm.DateTime properties.)
Second, it’s exciting to see real PHP applications leveraging the Azure platform in production. One example is Hotelpeeps, a Facebook application that leverages the Azure platform to help you find great hotel rates. And (what I think is equally exiting), we are starting to see community contributions to the SDK. The code is available on CodePlex here, http://phpazure.codeplex.com/releases/view/64047 (note that it is also available as a PEAR package).
Lastly (and this isn’t part of the official release announcement), I took some time to play with the SDK while it was still in beta. I looked at some ASP.NET application tutorials on the TechNet Wiki and wondered how easy it would be to implement the same functionality using PHP and the Windows Azure SDK for PHP. The result of my investigation produced three beginner-level tutorials:
- Using the Windows Azure Web Role and Windows Azure Table Service with PHP
- Using the Windows Azure Web Role and SQL Azure with PHP
- Using the Windows Azure Web Role and Windows Azure Blob Service with PHP
If you read/use those tutorials, please edit/improve them…it’s a wiki!