PHP Style Guide
Posted: Fri Nov 21, 2014 2:54 am
I have looked carefully but not found yet to see if OpenCart has adopted one of the PHP style guides. (My apologies if it has)
For example
PSR-0: Autoloader Standardhttp://www.php-fig.org/psr/psr-4/
PSR-1: Basic Coding Standardhttp://www.php-fig.org/psr/psr-1/
PSR-2: Coding Style Guidehttp://www.php-fig.org/psr/psr-2/
Zend coding standardhttp://framework.zend.com/manual/1.12/e ... rview.html
Pear coding standards [urlhttp://pear.php.net/manual/en/coding-standards.php][/url]
Other frameworks I've used are quite strict Magento and concrete5 to name just two
It would seems useful if everyone sang by the same hymn sheet.
For example
PSR-0: Autoloader Standardhttp://www.php-fig.org/psr/psr-4/
PSR-1: Basic Coding Standardhttp://www.php-fig.org/psr/psr-1/
PSR-2: Coding Style Guidehttp://www.php-fig.org/psr/psr-2/
Zend coding standardhttp://framework.zend.com/manual/1.12/e ... rview.html
Pear coding standards [urlhttp://pear.php.net/manual/en/coding-standards.php][/url]
Other frameworks I've used are quite strict Magento and concrete5 to name just two
It would seems useful if everyone sang by the same hymn sheet.