Zend Framework - From Extreme Simplicity to Enterprise!

Today an interesting blog post on Zend Framework has made to the Hacker News front page. I have to agree with the author - Zend Framework is an over-engineered piece of software.

A few years ago I was working full time as a PHP developer. Naturally, I had experimented with lots of frameworks, including CakePHP, CodeIgniter, Kohana, Yii, Symfony and obviously, Zend Framework.

Over the years, I had developed many projects primarily using CodeIgniter and later on, Kohana. There was one project that was larger in scale compared to an average PHP project (whatever that means), so I decided to use Zend Framework to take advantage of its component-based structure.

The result? It was dreadful.

Read more ...

Wuit.com Now Runs on Padrino

A few days ago I discovered Padrino, an excellent ruby framework built on top of Sinatra. What can be a better than experimenting with it? Build an actual website with it!

So last night I ported Wuit.com from using vanilla PHP + Flourish to using Padrino + DataMapper + Haml.

The entire porting experience was positive, albeit the website only has two pages.

I did encounter a strange problem with Capistrano though - both current_release and latest_release were giving me strange results. In the end I had to modify my deployment recipe to overcome this.

For building small to medium sized projects, I think Padrino is an excellent choice, as it offers a more complete foundation than Sinatra, and is not as heavy as Rails.

Deploy PHP Websites Using Capistrano (and Git)

The Rails deployment flow is really smooth thanks to the powerful (and easy to use) Capistrano.

Capistrano not only works with Rails and other Ruby code bases, but also code bases in any programming languages, such as PHP!

Here is an overview of what I did to get one of our PHP production sites up and running with Capistrano.

Read more ...