Skip to content

PHP Tools for Neovim#

PHP Tools for Neovim is provided as a language server (LSP).

Requirements#

Installation#

  1. Use Neovim Language Server Quickstart Config:

    nvim-lspconfig 2. Make sure the Language Server is installed.

    npm i devsense-php-ls -g
    
    3. Enable "phptools" config in your init.lua:
    vim.lsp.enable('phptools')
    

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.