Emacs

Client Guides

Install Phpactor with Global Installation then install LSP Mode. Please read Installation - LSP Mode for client installation. Installing lsp-ui in addition to lsp-mode integrates a rich UI for LSP into Emacs.

For example: include it in your init.el

;; Add lsp or lsp-deferred function call to functions for your php-mode customization
(defun init-php-mode ()
  (lsp-deferred))

(with-eval-after-load 'php-mode
  ;; If phpactor command is not installed as global, write the full path
  ;; (custom-set-variables '(lsp-phpactor-path "/path/to/phpactor"))
  (add-hook 'php-mode-hook #'init-php-mode))

If you’re using use-package or leaf.el, you can add it to the :hook or :init clauses of those blocks instead of with-eval-after-load.

Read FAQ - LSP Mode if you have a language server other than Phpactor in your environment.