开发者

Do you know of any projects in PHP that use namespaces that I could study?

I know namespaces are new in PHP but have been around for a long time in other languag开发者_如何学Goes. I started out in PHP so I really have no experience using them, I have read many articles and post on here about namespace in PHP and I get thebasic idea of how to use it but it is still something that will probably take me a while for it to really sink in. I learn better by seeing example code, so far I have not seen any opensource PHP projects that take use of the new namespace features of PHP.

My question, do you know of any projects in PHP that use namespace that I could look over?


Both Symfony 2 and Doctrine 2 will be using namespaces.


Check out any of the sections on this: http://flow3.typo3.org/documentation/manuals/flow3/


The Lithium framework is a PHP 5.3-oriented framework that makes extensive use of namespaces. The framework is still in development at this point but their use of namespaces and their loading class are excellent examples that you could look at.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜