mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-06 22:16:34 +02:00
Wrap Coding Style to 120 chars
This commit is contained in:
@@ -1,10 +1,18 @@
|
||||
# Code Style Guide
|
||||
|
||||
The PHP community is large and diverse, composed of innumerable libraries, frameworks, and components. It is common for PHP developers to choose several of these and combine them into a single project. It is important that PHP code adhere (as close as possible) to a common code style to make it easy for developers to mix and match various libraries for their projects.
|
||||
The PHP community is large and diverse, composed of innumerable libraries, frameworks, and components. It is common for
|
||||
PHP developers to choose several of these and combine them into a single project. It is important that PHP code adhere
|
||||
(as close as possible) to a common code style to make it easy for developers to mix and match various libraries for
|
||||
their projects.
|
||||
|
||||
The [Framework Interop Group][fig] (formerly known as the 'PHP Standards Group') has proposed and approved a series of style recommendations, known as [PSR-0][psr0], [PSR-1][psr1] and [PSR-2][psr2]. Don't let the funny names confuse you, these recommendations are merely a set of rules that some projects like Drupal, Zend, CakePHP, phpBB, AWS SDK, FuelPHP, Lithium, etc are starting to adopt. You can use them for your own projects, or continue to use your own personal style.
|
||||
The [Framework Interop Group][fig] (formerly known as the 'PHP Standards Group') has proposed and approved a series of
|
||||
style recommendations, known as [PSR-0][psr0], [PSR-1][psr1] and [PSR-2][psr2]. Don't let the funny names confuse you,
|
||||
these recommendations are merely a set of rules that some projects like Drupal, Zend, CakePHP, phpBB, AWS SDK, FuelPHP,
|
||||
Lithium, etc are starting to adopt. You can use them for your own projects, or continue to use your own personal style.
|
||||
|
||||
Ideally you should write PHP code that adheres to one or more of these standards so that other developers can easily read and work with your code. They all add on to the recommendation before, so using PSR-1 requires PSR-0, but does not require PSR-2.
|
||||
Ideally you should write PHP code that adheres to one or more of these standards so that other developers can easily
|
||||
read and work with your code. They all add on to the recommendation before, so using PSR-1 requires PSR-0, but does
|
||||
not require PSR-2.
|
||||
|
||||
* [Read about PSR-0][psr0]
|
||||
* [Read about PSR-1][psr1]
|
||||
|
Reference in New Issue
Block a user