2016-08-22 20:40:16 +00:00
# PHP Language Server
2016-08-25 13:27:14 +00:00
[](https://packagist.org/packages/felixfbecker/language-server)
[](https://travis-ci.org/felixfbecker/php-language-server)
2016-09-06 10:55:05 +00:00
[](https://codecov.io/gh/felixfbecker/php-language-server)
2016-08-25 16:14:08 +00:00
[](https://gemnasium.com/github.com/felixfbecker/php-language-server)
2016-09-09 08:01:34 +00:00
[](https://php.net/)
2016-08-30 16:49:06 +00:00
[](https://github.com/felixfbecker/php-language-server/blob/master/LICENSE.txt)
2016-09-30 10:09:33 +00:00
[](https://gitter.im/felixfbecker/php-language-server?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge)
2016-08-22 20:40:16 +00:00
2016-08-25 13:27:14 +00:00
A pure PHP implementation of the [Language Server Protocol ](https://github.com/Microsoft/language-server-protocol ).
2016-09-02 00:56:45 +00:00

2016-09-06 12:02:28 +00:00
## Used by
- [vscode-php-intellisense ](https://github.com/felixfbecker/vscode-php-intellisense )
## Contributing
You need at least PHP 7.0 and Composer installed.
Clone the repository and run
composer install
to install dependencies.
Run the tests with
vendor/bin/phpunit --bootstrap vendor/autoload.php tests
2016-09-30 09:30:08 +00:00
## Command line arguments
2016-10-11 19:14:49 +00:00
###### --tcp=host:port (optional)
2016-09-30 09:30:08 +00:00
Causes the server to use a tcp connection for communicating with the language client instead of using STDIN/STDOUT.
The server will try to connect to the specified address.
Example:
2016-10-11 19:14:49 +00:00
php bin/php-language-server.php --tcp=127.0.0.1:12345
###### --memory-limit=integer (optional)
Sets memory limit for language server. Equivalent to [memory-limit ](http://php.net/manual/en/ini.core.php#ini.memory-limit ) *php.ini* directive. By default there is no memory limit.
Example:
2016-09-30 09:30:08 +00:00
2016-10-11 19:14:49 +00:00
php bin/php-language-server.php --memory-limit=256M