views:

1646

answers:

12

I would like to get started with PHP, and 5.3 release seems to bring many nice features (namespaces, lambda functions, and many others).

I have found some MVC frameworks, and some of them support only PHP 5:

but can anyone recommend one of those MVC frameworks that plans to actively use PHP 5.3 features, not just being compatible with PHP 5.3?

Update

Results so far:

+5  A: 

Zend Framework 2.0 will support only PHP 5.3 because one of the major points on their roadmap for 2.0 is converting everything in the framework to use namespacing.

Edit: The current version of Zend Framework is compatible with 5.3, but 2.0 will actually be built on top of many of the new features offered by 5.3 such as namespacing.

Noah Goodrich
Great, any language without namespaces is just incomplete.
Bart van Heukelom
+1  A: 

Code Igniter is compatible with PHP 5.3

Release Notes

Now do you mean "compatible" or "leverages the new features of that version of PHP in a compelling way"?

It's important to realize that no matter how deep into a framework you get, you can always write in raw PHP, so something like a lambda will always be "supported" if the 5.3 version of PHP doesn't explicitly break the framework.

Alex Mcp
the second part: using the new features of 5.3 in an easy to follow and learn way.
alexandrul
and given my lack of experience, I'm hoping to learn some best practices of using those new features from the framework samples (with some luck)
alexandrul
Understood. As far as I know, CodeIgniter doesn't -expand- on those 5.3 features, they just don't break CodeIgniter.
Alex Mcp
+5  A: 

You should check out Lithium.

This project is currently actively developped by 2 main CakePHP developpers.

It's still young (announced and first release a month ago) but it's worth keeping an eye on it.

kouak
It seems there's a new PHP framework out there every week. This one looks interesting though.
MiseryIndex
+1  A: 

cakephp is the best for that try it , its simple and every thing get there, what u want

vikas
TiuTalk
+1  A: 

PHPRO framework:

http://phpro.org

Sarfraz
+1  A: 

It seems that Symfony 2.0 will require PHP 5.3, based on this post: Why will Symfony 2.0 finally use PHP 5.3:

To sum up, we have decided to take the best of both worlds:

  • symfony 1.4 (with support until early 2013) will be the best version for existing projects and conservative companies.

  • Symfony 2.0 (probably to be released late 2010) will be the best version for new projects and companies willing to either install PHP 5.3, use the Zend Server, or install the "right" Linux distribution.

I hope you will all understand and approve this move. The Symfony core team is really excited about the opportunities it gives us, and we think the Symfony 2.0 release will be a blast. Wish us luck!

alexandrul
+1  A: 

FLOW3

FLOW3 is based on the newest technologies of tomorrow like for example namespaces. These technologies aren't available in PHP 5.2, but are implemented in PHP 5.3. It has had it's final release in June 2009, so most operating system distributors do not provide PHP 5.3 packages yet. You can find instructions to install PHP 5.3 for widely used operating systems in the appendixes.

alexandrul
A: 

http://www.hydrogenphp.com is very young, but makes heavy use of PHP 5.3 features. Its model-end stuff is killer, and is ridiculously fast if you're running memcached.

Tom Frost
This looks like an incredibly verbose and less powerful version of Doctrine 2. I don't see why anyone would use this.
ryeguy
Agreed. Slick homepage though.
Abba Bryant
+1  A: 

One other http://www.recessframework.org/

Jesse Kochis
+5  A: 

http://fatfree.sourceforge.net is very light and powerful and is only for 5.3, using its features at large.

Sten
the other frameworks mentioned here are "in development". fatfree is already stable and used in production sites.
stillstanding
+1  A: 

I recently launched a framework, Sonic, which requires PHP 5.3 or later.

It uses namespaces, late static binding, closures, etc.

It also has a full implementation of Facebook's Big Pipe built right in:
sonicframework.com/tutorial/turbo

It's very quick and easy to set up:
sonicframework.com/quick-start

Source is available on github:
http://www.github.com/ccampbell/sonic

Craig
A: 

Check out Alloy Framework - It's a new PHP 5.3+ Hierarchal MVC Framework that works a little differently than most other MVC frameworks.

The main differences to other framework projects are primarily:

  1. Modular Organization - single folder for a group of controllers/views/entities that are created for the same structure - "blog" or "events", etc.
  2. HMVC (Hierarchal MVC) - Allows module sub-dispatches anywhere within views or controllers - extremely useful for "wiget" type structures within layouts or nested views. Helps promote code re-use for common structures like "comments", "tags", "ratings", etc.
  3. More explicitness - view objects are explicitly retuned by the controller method for display instead of implicitly loaded, etc.

Read more on the Architecture page of the manual.

The URL Router is also very nice and borrows a lot of concepts from Merb and Rails.

Vance Lucas