[wp-trac] [WordPress Trac] #23357: PSR compatibility
WordPress Trac
noreply at wordpress.org
Fri Feb 1 12:27:59 UTC 2013
#23357: PSR compatibility
-----------------------------+-------------------------
Reporter: fale | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: | Severity: normal
Keywords: |
-----------------------------+-------------------------
The PHP-Fig have published lately 4 different PSRs:
- [https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md
PSR-0] Aims to provide a standard file, class and namespace convention to
allow plug-and-play code.
- [https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1
-basic-coding-standard.md PSR-1] Aims to ensure a high level of technical
interoperability between shared PHP code.
- [https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2
-coding-style-guide.md PSR-2] Provides a Coding Style Guide for projects
looking to standardise their code.
- [https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3
-logger-interface.md PSR-3] Describes a common interface for logging
libraries.
I think WordPress should:
- Become a Voting Member of PHP-Fig
- Implementing all the PSRs.
The PSR1 and PSR2 can be partially implemented without breaking anything.
The PSR0 and the completition of PSR1 and PSR2 will need a breaking
version, so a X.0 version can be a good moment (4.0 maybe?)
Even if the argument has already been touched in the ticket #21300, I
think that a wider discussion was needed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23357>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list