Welcome Guest, Not a member yet? Register   Sign In
looking for a guide of coding style
#1

[eluser]Unknown[/eluser]
We will start a new proyect based in CI.

To facilitate the work of the team, I am looking for an standard to use in our Coding conventions and Documentation.

What guide of coding style is recomended to programing with CodeIgniter?
#2

[eluser]xwero[/eluser]
Derek Allard blog post
#3

[eluser]blackarma[/eluser]
Another good coding standard : PEAR
#4

[eluser]Unknown[/eluser]
Thanks for your recomendations. I think than we will follow Derek's doc
#5

[eluser]thomas.ernest[/eluser]
It's better to have a tool to automatically check if your files match the requirements of a coding convention. I use PHP_CodeSniffer [phpcs] for that.

However, it doesn't support Code Igniter style guide [ci-style] natively. So, I've developed something. It doesn't check all standard requirements, but already more than nothing.

Feel free to give a try and share your feedbacks.

[phpcs] http://pear.php.net/package/PHP_CodeSniffer/
[ci-style] http://ellislab.com/codeigniter/user-gui...guide.html
[ci4php-cs] https://github.com/thomas-ernest/CodeIgn...odeSniffer




Theme © iAndrew 2016 - Forum software by © MyBB