This module adds support for PHP 5.3+ (including PHP7).
- ctags-based code completion (
- eldoc support (
- REPL (
- Code refactoring commands (
- Unit-test commands (
- Support for
composerprojects (with project-specific snippets)
- File templates
PHP was the first programming language I got paid to code in, back in the Cretaceous period (2003). My sincerest apologies go out to all the programmers who inherited my earliest PHP work. I know you’re out there, writhing in your straitjackets.
Save a programmer today. Stop a friend from choosing PHP as their first language.
This module has no dedicated maintainers.
1.2. Module flags
To get started with PHP, you’ll need
php (5.3+) and
Note for +lsp:
- In order to make full use of phpactor server,
php(7.3+) is recommended.
- If you use intelephense,
2.1.2. Arch Linux
This module has no required dependencies, but it has a couple optional ones.
phpctags(better code completion)
phpunit(unit test commands)
@prettier/plugin-php(for code formatting)
$ composer global require \ d11wtq/boris \ phpunit/phpunit \ 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
You must ensure that ~/.composer/vendor/bin is in
PATH, so these executables
are visible to Emacs:
# place this in your profile file, like ~/.bash_profile or ~/.zshenv $ export PATH="~/.composer/vendor/bin:$PATH"
You may also need to regenerate your envvar file by running
$ doom env on the
To use intelephense instead of , run
M-x lsp-install-serverand choose
iphto install lsp-intelephense.
3. TODO Usage
This module has no usage documentation yet. Write some?
4. TODO Configuration
This module has no configuration documentation yet. Write some?
5. TODO Troubleshooting
There are no known problems with this module. Report one?
6. TODO Appendix
This module has no appendix yet. Write one?