PHP Guidelines for PSR-4 libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

In PHP Guidelines[3], we have:

 Composer registered libraries, which are reusable components written in
PHP, usually PSR-O compliant classes, registered on a package registry,
most often on Packagist.

=> change to "PSR-0 or PSR-4"

A PSR-0 [1] compliant library would put its PHP files
in /usr/share/php/<Vendor Name>

=> Add

A PSR-4 [2] compliant library would put its PHP files
in /usr/share/php/<Vendor Name> in a PSR-0 compliant tree.


Comment about this proposal, before I submit it to FPC ?
(it is already applied in some packaged libraries)


Remi

P.S @adam, I don't know if you have subscribed to php-devel (which is a
quite low traffic ML)


[1] https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
[2]
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md
[3] https://fedoraproject.org/wiki/Packaging:PHP
_______________________________________________
php-devel mailing list
php-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/php-devel





[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora KDE]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux