PHP conding standards

CodeLite installation/troubleshooting forum
joeysantiago
CodeLite Curious
Posts: 1
Joined: Fri Aug 14, 2015 10:37 am
Genuine User: Yes
IDE Question: c++
Contact:

PHP conding standards

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: PHP conding standards

Post 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
Make sure you have read the HOW TO POST thread
Post Reply