1
0
Fork 0

Update README.md

pull/639/head
Levi Harman 2018-04-26 18:36:35 -05:00 committed by GitHub
parent bb5c702aba
commit 7e070d0e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 13 deletions

View File

@ -132,9 +132,7 @@ All classes are considered internal and are not subject to semver.
## Installation ## Installation
The recommended installation method is through [Composer](https://getcomposer.org/). The recommended installation method is through [Composer](https://getcomposer.org/). Follow the following installation instructions for local or global installation after installing composer on your system.
```composer require felixfbecker/language-server```
### Local Installation ### Local Installation
Create a directory for php-language-server. Create a composer.json file in it, with the following contents: Create a directory for php-language-server. Create a composer.json file in it, with the following contents:
@ -152,7 +150,7 @@ composer require felixfbecker/language-server
composer run-script --working-dir=vendor/felixfbecker/language-server parse-stubs composer run-script --working-dir=vendor/felixfbecker/language-server parse-stubs
``` ```
# Global installation ### Global installation
Before installing php-language-server, make sure your ~/.config/composer/composer.json includes the lines below. The settings apply to all globally installed Composer packages, so proceed with caution. If you do not want to edit your global Composer configuration, see the section for local installation above. Before installing php-language-server, make sure your ~/.config/composer/composer.json includes the lines below. The settings apply to all globally installed Composer packages, so proceed with caution. If you do not want to edit your global Composer configuration, see the section for local installation above.
``` ```
@ -168,15 +166,6 @@ composer global require felixfbecker/language-server
composer global run-script --working-dir=vendor/felixfbecker/language-server parse-stubs composer global run-script --working-dir=vendor/felixfbecker/language-server parse-stubs
``` ```
and you will get the latest stable release and all dependencies.
Running `composer update` will update the server to the latest non-breaking version.
After installing the language server and its dependencies,
you must parse the stubs for standard PHP symbols and save the index for fast initialization.
composer run-script --working-dir=vendor/felixfbecker/language-server parse-stubs
## Running ## Running
Start the language server with Start the language server with