PHP Tools for Neovim#
PHP Tools for Neovim is provided as a language server (LSP).
Requirements#
- Node.js: nodejs.org/download
- Neovim: neovim.io
Install with Mason#
mason.nvim installs the devsense-php-ls package from the Mason registry. The package provides the devsense-php-ls executable.
- Install the server:
- Enable "phptools" config in your
init.lua:
Optional: mason-lspconfig maps the nvim-lspconfig name phptools to the devsense-php-ls package. Add it to ensure_installed to install the server. Installed servers are enabled automatically:
The license key in Registration still applies.
Installation#
Install the server manually:
-
Use Neovim Language Server Quickstart Config:
-
Make sure the Language Server is installed.
- Enable "phptools" config in your
init.lua:
Configuration#
Open ./lsp/phptools.lua and update init_options section. Valid configuration keys are: - ['0'] = '<YOUR_LICENSE_KEY>' or license key offline signature - any setting listed at the configuration
Registration#
Get any license key (both Visual Studio and Visual Studio Code are accepted) on our purchase page.
Insert <YOUR_LICENSE_KEY> in the "init_options" above to enable additional premium features including code actions and starred suggestions.
The same license key applies when the server is installed with Mason.