#307 Small changes to PHP Guidelines
Closed: Fixed None Opened 10 years ago by remi.

File placement:

Change need to take care of PSR-0 standard https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md and avoid being ambiguous and allow PSR-O compliant autoloader to work properly.

"A PSR-0 compliant library will put its PHP files in /usr/share/php/<Vendor Name>".

Requiring a Minimum PHP version:

"This works for all released versions of Fedora and RHEL/EPEL-6."


For the former change, where would this go? And how is "Vendor Name" determined?

For the latter change, I'd suggest just going ahead and making it. We certainly don't want to leave a false statement in the guidelines.

Replying to [comment:1 tibbs]:

For the former change, where would this go? And how is "Vendor Name" determined?

In '1.3 File placement' section (after Whizz_Bang ex)

<Vendor Name> is defined by the namespace of the classes (first part), and by the tree of the library (PSR-0 means tree ~= namespace). This standard is designed to avoid any conflicts between libraries from various "vendor" (upstream).

For the latter change, I'd suggest just going ahead and making it. We certainly don't want to leave a false statement in the guidelines.

It seems I can't update it.

Quick! Somebody get that man some access!

Actually I have no idea how to grant privs in the wiki, or even if I'm able to do so.

Login to comment on this ticket.

Metadata