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/php
shouldbethepathtothePHPinstallation.InLinuxenvironments,thispathwillusuallybegiven.
Oncethisisdone,thepackageshouldalreadybeworking.