Skip to content

PHP(recommended)#

Server#

For more information about the LSP server, check intelephense.

Installation#

npm i intelephense -g

Debugger: Yes#

Available configurations#

lsp-intelephense-files-max-size#

Default: 1000000

Maximum file size in bytes.


lsp-intelephense-files-associations#

Default: [*.php *.phtml]

Configure glob patterns to make files available for language server features.


lsp-intelephense-files-exclude#

Default: [**/.git/** **/.svn/** **/.hg/** **/CVS/** **/.DS_Store/** **/node_modules/** **/bower_components/** **/vendor/**/{Test,test,Tests,tests}/**]

Configure glob patterns to exclude certain files and folders from all language server features.


lsp-intelephense-stubs#

Default: [apache bcmath bz2 calendar com_dotnet Core ctype curl date dba dom enchant exif fileinfo filter fpm ftp gd hash iconv imap interbase intl json ldap libxml mbstring mcrypt meta mssql mysqli oci8 odbc openssl pcntl pcre PDO pdo_ibm pdo_mysql pdo_pgsql pdo_sqlite pgsql Phar posix pspell readline recode Reflection regex session shmop SimpleXML snmp soap sockets sodium SPL sqlite3 standard superglobals sybase sysvmsg sysvsem sysvshm tidy tokenizer wddx xml xmlreader xmlrpc xmlwriter Zend OPcache zip zlib]

Configure stub files for built in symbols and common extensions. The default setting includes PHP core and all bundled extensions.


lsp-intelephense-completion-insert-use-declaration#

Default: t

Use declarations will be automatically inserted for namespaced classes, traits, interfaces, functions, and constants.


lsp-intelephense-completion-fully-qualify-global-constants-and-functions#

Default: nil

Global namespace constants and functions will be fully qualified (prefixed with a backslash).


lsp-intelephense-completion-trigger-parameter-hints#

Default: t

Method and function completions will include parentheses and trigger parameter hints.


lsp-intelephense-completion-max-items#

Default: 100

The maximum number of completion items returned per request.


lsp-intelephense-format-enable#

Default: t

Enables formatting.


lsp-intelephense-licence-key#

Default: nil

Enter your intelephense licence key here to access premium features.


lsp-intelephense-telemetry-enabled#

Default: nil

Anonymous usage and crash data will be sent to Azure Application Insights.


lsp-intelephense-rename-exclude#

Default: [**/vendor/**]

Glob patterns to exclude files and folders from having symbols renamed. Rename operation will fail if references and/or definitions are found in excluded files/folders.


lsp-intelephense-trace-server#

Default: off

Traces the communication between VSCode and the intelephense language server.


lsp-intelephense-storage-path#

Default: ~/.emacs.d/lsp-cache

Optional absolute path to storage dir.


lsp-intelephense-clear-cache#

Default: nil

Optional flag to clear server state.


lsp-intelephense-multi-root#

Default: t

Flag to control if the server supports multi-root projects.


lsp-intelephense-server-command#

Default: (intelephense --stdio)

Command to start Intelephense.



Last update: April 15, 2021