Page 1 of 1

PHP conding standards

Posted: Fri Aug 14, 2015 10:40 am
by joeysantiago
Hei all,

i'm a php Drupal developer and started using codelite lately. It's preatty neat, fast and cool, i like it a lot.

Is there a way of setting the PHP plugin to use the PEAR coding standards?

thanks

joeysantiago

Re: PHP conding standards

Posted: Fri Aug 14, 2015 2:56 pm
by eranif
Hi,
The Source Code Formatter supports PHP-CS-Fixer
All you need to do is to tell CodeLite where the PHP-CS-Fixer phar file exists and provide the path to PHP CLI

From: Plugins->Source Code Formatter->Options

In the "General->PHP Formatter" select "PHP-CS-Fixer"

Set the paths to php-cs-fixer from:
Plugins->Source Code Formatter->Options->PHP->PHP-CS-Fixer

From this point on, you can execute: Ctrl-I to format a file

Eran