lang/php: expand on dependencies in README
And mention @prettier/plugin-php, as a dependency of php-cs-fixer. Fixes #3081
This commit is contained in:
parent
7fcf2c2025
commit
48273faa82
1 changed files with 18 additions and 6 deletions
|
@ -100,29 +100,41 @@ sudo zypper install nodejs npm
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Dependencies
|
** Dependencies
|
||||||
The features in this module optionally depend on the following php packages:
|
This module has no required dependencies, but it has a couple optional ones.
|
||||||
|
|
||||||
+ ~boris~ (REPL)
|
+ ~boris~ (REPL)
|
||||||
+ ~phpctags~ (better code completion)
|
+ ~phpctags~ (better code completion)
|
||||||
+ ~phpunit~ (unit test commands)
|
+ ~phpunit~ (unit test commands)
|
||||||
+ ~php-cs-fixer~ (for code formatting)
|
+ ~php-cs-fixer~ and ~@prettier/plugin-php~ (for code formatting)
|
||||||
|
|
||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
composer global require \
|
composer global require \
|
||||||
d11wtq/boris \
|
d11wtq/boris \
|
||||||
phpunit/phpunit \
|
phpunit/phpunit \
|
||||||
techlivezheng/phpctags
|
techlivezheng/phpctags \
|
||||||
|
friendsofphp/php-cs-fixer
|
||||||
|
|
||||||
|
# Needed by php-cs-fixer, otherwise you'll get "Couldn't resolve parser
|
||||||
|
# 'php'" errors
|
||||||
|
npm install -g @prettier/plugin-php
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Ensure that ~\~/.composer/vendor/bin~ is in ~PATH~:
|
You must ensure that ~\~/.composer/vendor/bin~ is in ~PATH~, so these
|
||||||
|
executables are visible to Emacs:
|
||||||
|
|
||||||
#+BEGIN_SRC sh
|
#+BEGIN_SRC sh
|
||||||
# place this in your profile file, like ~/.bash_profile or ~/.zshenv
|
# place this in your profile file, like ~/.bash_profile or ~/.zshenv
|
||||||
export PATH="~/.composer/vendor/bin:$PATH"
|
export PATH="~/.composer/vendor/bin:$PATH"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
By the way, if you use intelephense, running =M-x lsp-install-server= and
|
You may also need to regenerate your envvar file by running ~doom env~ on the
|
||||||
choose ~iph~ to install lsp-intelephense.
|
command line.
|
||||||
|
|
||||||
|
#+begin_quote
|
||||||
|
To use intelephense instead of , run =M-x lsp-install-server= and choose ~iph~ to
|
||||||
|
install lsp-intelephense.
|
||||||
|
#+end_quote
|
||||||
|
|
||||||
* TODO Features
|
* TODO Features
|
||||||
# An in-depth list of features, how to use them, and their dependencies.
|
# An in-depth list of features, how to use them, and their dependencies.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue