Download the PHP package tsufeki/tenkawa-php-language-server without Composer
On this page you can find all versions of the php package tsufeki/tenkawa-php-language-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tsufeki/tenkawa-php-language-server
More information about tsufeki/tenkawa-php-language-server
Files in tsufeki/tenkawa-php-language-server
Package tenkawa-php-language-server
Short Description Language server for PHP, with powerful static analysis and type inference
License GPL-3.0-or-later
Informations about the package tenkawa-php-language-server
Tenkawa PHP Language Server
Tenkawa is a language server for PHP, with powerful static analysis and type inference engine borrowed without asking from PHPStan.
Still experimental, but should be usable. Any bug reports, feature requests, suggestions, questions are welcome.
Installation
Requires PHP >= 7.1 with pdo_sqlite extension.
For Visual Studio Code extension, see here.
Either with composer
create-project
(~
directory
is an example):
Or by cloning the repo:
Build index of the standard library:
Now configure your client to start the server with this command to use stdio:
Or to connect to a TCP socket:
Features
- ✔ Autocompletion
- ✔ Classes/functions (also with automatic import and within doc comments)
- ✔ Class members
- ✔ Local variables
- ✔ Diagnostics
- ✔ Static analysis with PHPStan (see Known issues)
- ✔ Go to definition
- ✔ Go to implementation
- ✔ Hover info
- ✔ Signature help
- ✔ References
- ✔ Document symbols
- ✔ Workspace symbols
- ✔ Classes/functions/consts
- ✘ Class members (not yet)
- ✔ Code actions
- ✔ Import class/function
- ✔ Fix wrong autoloaded class/namespace name
- ✘ More to come...
- ✔ Multi-root workspace
- ✔ Snippets
- ✔ Class/interface/trait
- ✔ Dynamic configuration
Unimplemented (yet?):
- ✘ Go to type definition
- ✘ Go to declaration
- ✘ Document highlight
- ✘ Document link
- ✘ Code lens
- ✘ Formatting
- ✘ document
- ✘ range
- ✘ on type
- ✘ Rename
- ✘ Folding range
Known issues
- Many features don't work inside traits. This is caused by PHPStan's design.
- Refactors are not 100% bullet-proof.
- Performance & long indexing times.
Command line options
--socket=<socket>
- connect to a socket instead of communicating through STDIO. Allowed format:tcp://127.0.0.1:12345
orunix:///path/to/socket
.--log-stderr
- log to stderr.--log-file=<file>
- log to the given file.--log-client
- log usingwindow/logMessage
protocol method.--log-level=<level>
- log only messages of the given level and up.<level>
can be one ofemergency
,alert
,critical
,error
,warning
,notice
,info
,debug
. Defaults toinfo
.--build-index
- build standard library index instead of starting the server.--config-json=<json>
- default options, see Configuration. Example:--config-json={"completion":{"autoImport":false}}
.
Configuration
You can pass configuration options to the server through
initializationOptions
parameter of initialize
protocol method or by
implementing workspace/configuration
request and sending
workspace/didChangeConfiguration
notifications from client.
Recognized options:
Licence
Copyright (c) 2017 tsufeki
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
All versions of tenkawa-php-language-server with dependencies
ext-mbstring Version *
ext-pdo Version *
ext-pdo_sqlite Version *
cogpowered/finediff Version ^0.3.1
composer/xdebug-handler Version ^1.3
eloquent/phpstan-phony Version 0.3.0
evenement/evenement Version ^3
jangregor/phpstan-prophecy Version 0.3.0
jetbrains/phpstorm-stubs Version dev-master
league/html-to-markdown Version ^4
nikic/php-parser Version ^4
phpdocumentor/reflection-docblock Version ^4
phpdocumentor/type-resolver Version 0.5.0 as 0.4.0
phpstan/phpdoc-parser Version ^0.3
phpstan/phpstan Version 0.10.7
phpstan/phpstan-beberlei-assert Version 0.10
phpstan/phpstan-doctrine Version 0.10
phpstan/phpstan-mockery Version 0.10.2
phpstan/phpstan-phpunit Version 0.10
phpstan/phpstan-symfony Version 0.10.2
phpstan/phpstan-webmozart-assert Version 0.10
psr/log Version ^1
react/event-loop Version ^1
recoil/api Version ^1
recoil/kernel Version ^1
recoil/react Version ^1
tsufeki/blanche-json-rpc Version ^0.3
tsufeki/hmcontainer Version ^0.3
tsufeki/kayo-json-mapper Version ^0.3
tsufeki/php-lenient-parser Version ^0.1
tsufeki/react-filesystem-monitor Version ^0.4
webmozart/glob Version ^4
webmozart/path-util Version ^2