Show PHP error on Atom

1

Colleagues.

I'm using the Atom editor for development, I've already installed some packages, but I noticed that Atom does not show any syntax errors. Does anyone know of an Atom package that does this? I tried to use linter-php, but the following error appears:

    
asked by anonymous 03.05.2017 / 00:00

2 answers

0
  

Version used: Atom 1.14.4 x64. Some details may vary depending on the version and configuration of the publisher, such as language.

PHP Linter

To display syntax errors, you can use the Linter PHP package.

You will need to have PHP installed on the machine. After that, just install the package by running the command:

apm install linter-php

) . Press Install . If necessary, allow all dependencies in the package to be added.

DependingonyourPHPinstallation,youmayhavetoconfiguretheexecutablepathforthepackage.Todothis,enterinEdit/Config...andadd,ifitdoesnotalreadyexist,theexcerpt:

'linter-php':#phppath.run'whichphp'tofindthepath'executablePath':/usr/bin/php

Rememberingthat/usr/bin/phpshouldbethepathtothePHPinstallation.InLinuxenvironments,thispathwillusuallybegiven.

Oncethisisdone,thepackageshouldalreadybeworking.

    
03.05.2017 / 03:27
0

The PHP Linter would be a good solution, but it was a temporary gambiarra. Thanks to Nuclide , a very active and powerful community adopted by Facebook, now what was just an editor, ended up turning into a true IDE.

To make your Atom Editor turn into an official IDE, it's very easy. Come with me and follow the steps below:

  • Install the package atom-ide-ui
  • Install your favorite language pack. In this case, PHP: ide-php
  • I wrote an article doing a review and a more nice comment of the tool. Access this link for more information.

        
    21.10.2017 / 21:10