Atom: Packages recommended for php development

Other language site
ja ja
Google Translate
  • -

    シェア
  • ---

    LINEで送る
  • -

    はてなブックマーク
    ブックマーク
  • -

    pocket
  • -

    rss
Atom logo

We introduce recommended packages for PHP development environment with Atom of text editor.

First of all, regardless of php, Atom installs the minimum necessary package. Details are here.

atom-beautify

https://atom.io/packages/atom-beautify

It is a package that formats the program code. It corresponds to PHP.

linter

https://atom.io/packages/linter

It is a tool to check the static code of the program.

An extension package dedicated to PHP is available. Extension packages need to be installed separately.

php introduces two plugins, linter-php and linter-phpcs.

linter-php

https://atom.io/packages/linter-php

It is an extension package for linter's php. Perform static code check. It is better to install it for php development.

linter-phpcs

https://atom.io/packages/linter-phpcs

As a tool of php coding standard checking is a linter extension package of general phpcs (Php Code Sniffer). We will check coding standards up to PSR-2.

To use this plugin you need to install the phpcs package in your php environment and use composer for installation.

compoer [global] requuire "squizlabs/php_codesniffer=*"

"=*" Is the latest version.

Here's detailed usage of composer.

Coding of php tends to be a program with low maintainability because of its high degree of freedom.

This is not efficient. You should always use those related to such coding conventions.

Conclusion

In this issue we introduced only the minimum necessary package to the last. Atom installs too much package, it gets heavier, which makes it inconvenient.

There are many convenient packages, so be careful with installing too much.

SNS also distributes articles.
Leave a Reply

*

If you like this article, share it!