- Notifications
You must be signed in to change notification settings - Fork309
Servers PHP
Arnie97 edited this pageJul 2, 2020 ·10 revisions
A node implementation.Recommended (way faster than php-language-server)
npm -g install intelephense- Please set
storagePathto any directory, e.g.'storagePath': '/tmp/intelephense' - Refer to "Configuration Options" inintellephens-docs for configuration of
workspace_config.
ifexecutable('intelephense')augroupLspPHPIntelephenseau!auUserlsp_setupcalllsp#register_server({\'name':'intelephense',\'cmd': {server_info->[&shell, &shellcmdflag,'intelephense --stdio']},\'whitelist': ['php'],\'initialization_options': {'storagePath':'/tmp/intelephense'},\'workspace_config': {\'intelephense': {\'files': {\'maxSize':1000000,\'associations': ['*.php','*.phtml'],\'exclude': [],\ },\'completion': {\'insertUseDeclaration':v:true,\'fullyQualifyGlobalConstantsAndFunctions':v:false,\'triggerParameterHints':v:true,\'maxItems':100,\ },\'format': {\'enable':v:true\ },\ },\}\})augroupENDendif
A pure PHP implementation of the openLanguage Server Protocol.Provides static code analysis for PHP for any IDE.
Uses the greatTolerant PHP Parser,phpDocumentor's DocBlock reflectionand anevent loop for concurrency.
Plug'felixfbecker/php-language-server', {'do':'composer install && composer run-script parse-stubs',for: []}
auUserlsp_setupcalllsp#register_server({\'name':'php-language-server',\'cmd': {server_info->['php',expand('~/.vim/plugged/php-language-server/bin/php-language-server.php')]},\'whitelist': ['php'],\})