NYCPHP Meetup

NYPHP.org

[nycphp-talk] Foo_Shape_Circle class naming convention from where?

Ben Sgro ben at projectskyline.com
Tue Sep 2 20:48:13 EDT 2008


Hello,

Yes, I follow this name space / naming convention. Learned from Zend and 
kept using.

Since PHP doesn't support namespaces (like java) I guess the next best 
thing is the "Zend_Auth_.." style.

- Ben

Michael B Allen wrote:
> I'm just curious but does anyone know what the origin of the class
> underscore per-directory naming convention used by some frameworks is?
>
> Meaning, a class with a name like:
>
>   Zend_Auth_Adapter_Ldap
>
> would have a script file path that ends with:
>
>   /Zend/Auth/Adapter/Ldap.php
>
> Also, do people sense a trend in the PHP community to follow this convention?
>
> If you were to encounter a library that used this convention, would it
> be considered a positive quality?
>
> Mike
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>   



More information about the talk mailing list