Weblog

Authentication and Access Control with Sentry 2 (part 2)

As promised, IBM developerWorks has now published the second part of my article on Sentry 2. In this concluding segment, I dive into the Sentry 2 permission model, explaining how to create groups, assign users and permissions to them, and use permission checks to selectively enable application functions. Also on the menu: find out how to harden your application with login throttling and temporary user deactivation, and integrate Sentry 2… Read More »Authentication and Access Control with Sentry 2 (part 2)

Authentication and Access Control with Sentry 2 (part 1)

If you build Web applications, there are a few things you can’t dodge coding: a user registration workflow, a password reset workflow, a login and logout system, and so on. Since these workflows aren’t likely to change much from one project to another, why not package them all up in a set of classes and use the time you save on something more constructive (blowing up some Protoss bases, maybe?)… Read More »Authentication and Access Control with Sentry 2 (part 1)

Use Doctrine 2.3 with PHP and Zend Framework

IBM developerWorks has just published my article on using Doctrine 2.3 with the Zend Framework. Doctrine is a well-known PHP Object-Relational Mapping (ORM) tool for querying and manipulating database content by using objects. It can be integrated with Zend Framework to inject database content into a PHP Web application. The article discusses how to create Doctrine entities and load and use them within Zend Framework 1.x and 2.x action controllers.… Read More »Use Doctrine 2.3 with PHP and Zend Framework

Integrating PHP Applications with Instagram (part 2)

IBM developerWorks has published the second part of my article on integrating the Instagram API with a PHP application. This concluding segment examines Instagram’s OAuth support, demonstrates how to access protected Instagram feeds, and introduces two third-party PHP libraries that ease Instagram API access. Read the full article here.

Integrating PHP Applications with Instagram (part 1)

IBM developerWorks has published my article on integrating the Instagram API with a PHP application. In case you didn’t already know, Instagram is a popular photo-sharing service that enables users to take photos with their smartphone and share them with others through the Web. The article examines the Instagram REST API in detail, using it with the Zend_Http_Client library to rapidly build and deploy PHP Web applications to search for… Read More »Integrating PHP Applications with Instagram (part 1)

Create REST Applications with the Slim Micro-Framework

IBM developerWorks has just published my article on creating REST applications with the Slim PHP micro-framework. Slim is one of the new breed of PHP micro-frameworks, inspired by Sinatra. It enables rapid web application development and prototyping without the performance overhead and learning curve of full-fledged frameworks. The article examines Slim in detail, using it to rapidly build and deploy a REST API with support for authentication and multiple request/response formats.… Read More »Create REST Applications with the Slim Micro-Framework

XQuery Processing at MMPUG

I’ll be speaking at the first meeting of the Mumbai MySQL/PHP User Group (MMPUG) tomorrow. High Performance XQuery Processing in PHP with Zorba (Wed Nov 27 2012 at 18:30) This session introduces the Zorba XQuery processor and PHP extension, and explains how to use it to add advanced XQuery processing to a PHP application. It will be based heavily on an article I’ve previously written for IBM developerWorks. If you’re… Read More »XQuery Processing at MMPUG

Integrating PHP Web Applications with JCR and Magnolia CMS

My article on using the PHP Content Repository (PHPCR) to interact with JCR content has just been published by php|architect magazine. PHPCR is an adaptation of the JCR standard which can be used to connect a PHP application with a JCR-compliant repository, such as the one used by the Java-based Magnolia CMS. The article explains how PHPCR makes it possible to build PHP applications that interact with content stored in… Read More »Integrating PHP Web Applications with JCR and Magnolia CMS

PHP Micro-Frameworks and Community Marketing at Open Source India 2012

The Open Source India conference is back for 2012. This year, it will run from Oct 12-14 in Bangalore. I’ll be presenting two sessions at the conference: Creating REST Applications with the Slim Micro-Framework (Sat Oct 13 2012 at 17:45) This session explains how to use the Slim PHP micro-framework to quickly deploy a REST API. It will also discuss how to implement common API requirements, such as authentication, request… Read More »PHP Micro-Frameworks and Community Marketing at Open Source India 2012

Integrating the Google+ API with a PHP Application

IBM developerWorks has just published my article on integrating the Google+ API with a PHP application. The Google+ API produces JSON output, which makes it easy for application developers to integrate into a Web application.  Although the API is currently read-only, a number of interesting applications are still possible, especially when you consider the amount of content being added to the service daily. Read the full article here.