Skip to content
Documentation for the Intelephense PHP language server
Branch: master
Clone or download
Ben Mewburn
Ben Mewburn licence, readme
Latest commit 5c83dbe Feb 20, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE.txt licence, readme Feb 20, 2019 licence, readme Feb 20, 2019


Support on Patreon

Intelephense is a PHP language server adhering to the Language Server Protocol.


npm i intelephense -g


	textDocumentSync: TextDocumentSyncKind.Incremental,
	documentSymbolProvider: true,
	workspaceSymbolProvider: true,
	completionProvider: {
		triggerCharacters: [
			'$', '>', ':', '\\',
			//registered to enable request forwarding to html/js/css language servers
			'.', '<', '/'
		resolveProvider: true
	signatureHelpProvider: {
		triggerCharacters: ['(', ',']
	definitionProvider: true,
	documentRangeFormattingProvider: true,
	referencesProvider: true,
	hoverProvider: true,
	documentHighlightProvider: true


intelephense {transport}

Where {transport} is one of:

  • --node-ipc
  • --stdio
  • --socket={number}
  • --pipe={string}

Initialisation Options

interface InitialisationOptions {
    //Optional absolute path to storage dir. Defaults to os.tmpdir()
    storagePath?: string;
    //Optional flag to clear server state
    clearCache?: boolean;

Configuration Options

    "intelephense.files.maxSize": {
        "type": "number",
        "default": 1000000,
        "description": "Maximum file size in bytes.",
        "scope": "window"
    "intelephense.files.associations": {
        "type": "array",
        "default": [
        "description": "Configure glob patterns to make files available for language server features.",
        "scope": "window"
    "intelephense.files.exclude": {
        "type": "array",
        "default": [],
        "description": "Configure glob patterns to exclude certain files and folders from all language server features.",
        "scope": "window"
    "intelephense.stubs": {
        "type": "array",
        "default": [
            "Zend OPcache",
        "description": "Configure stub files for built symbols and common extensions. The default includes PHP core and all bundled extensions.",
        "scope": "window"
    "intelephense.completion.insertUseDeclaration": {
        "type": "boolean",
        "default": true,
        "description": "Use declarations will be automatically inserted for namespaced classes, traits interfaces, functions, and constants.",
        "scope": "window"
    "intelephense.completion.fullyQualifyGlobalConstantsAndFunctions": {
        "type": "boolean",
        "default": false,
        "description": "Global namespace constants and functions will be fully qualified (prefixed with a backslash).",
        "scope": "window"
    "intelephense.format.enable": {
        "type": "boolean",
        "default": true,
        "description": "Enables formatting",
        "scope": "window"
    "intelephense.trace.server": {
        "type": "string",
        "enum": [
        "default": "off",
        "description": "Traces the communication between client and server.",
        "scope": "window"


This is proprietary software. Please see licence in LICENSE.txt.

You can’t perform that action at this time.