How are you friends atom Beautify and PHP?



  • Have a good day, respected. Tell me how to make a great flame. Beautify and PHP? I fought yesterday, but I couldn't. As recommended on the site, php-cs-fixer Writing the way to the completed file.

    .atom\packages\php-cs-fixer\php-cs-fixer.phar

    Irited the last one in PATH, but it didn't work, it still makes a mistake like that.

    Could not find 'php-cs-fixer'. The program may not be installed.

    See Reference for program installation instructions. You can configure Atom Beautify with the absolute path to 'php-cs-fixer.phar' by setting 'PHP - CS Fixer Path' in the Atom Beautify packages. Your program is properly installed if running 'where.exe php-cs-fixer' in your CMD prompt returns an absolute path to the executable. If this does not work then you have not installed the program correctly and so Atom Beautify will not find the program. Atom Beautify requires that the program be found in your PATH environment variable. Note that this is not an Atom Beautify issue if beautification does not work and the above command also does not work: this is expected behaviour, since you have not properly installed your program. Please properly setup the program and search through existing Atom Beautify issues before creating a new issue. See Reference for related Issues and Reference for documentation. If you are still unable to resolve this issue on your own then please create a new issue and ask for help.



  • The proven method is to establish php-cs-fixer globally.

    Globally (manual)

    You can run these commands to easily access php-cs-fixer from anywhere on your system:

    $ wget http://get.sensiolabs.org/php-cs-fixer.phar -O php-cs-fixer
    

    or with curl:

    $ curl http://get.sensiolabs.org/php-cs-fixer.phar -o php-cs-fixer
    

    then:

    $ sudo chmod a+x php-cs-fixer
    $ sudo mv php-cs-fixer /usr/local/bin/php-cs-fixer
    

    https://github.com/FriendsOfPHP/PHP-CS-Fixer


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2