Adding license key for Intelephense

The intelephense LS is a freemium tool, and as such requires a purchase of a key to use some advanced features. I know how to add the license key using coc.nvim + coc-phpls, but I’m not sure how to add it using Neovim + lspconfig.

add your licence key into the following file:


and restart Neovim


I take it that is the best way to do so with neovim then and not something that can be passed in to the LSP config for the server i.e.


(Note config is a local function where my keybindings and such are defined)