From 05376d8d92aa4042f98a55452c8c5c2fbe20f650 Mon Sep 17 00:00:00 2001 From: Levi Harman Date: Thu, 26 Apr 2018 18:25:21 -0500 Subject: [PATCH 1/6] Update README.md --- README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 15975362..b93d66ec 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,39 @@ 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 - +# Local installation +Create a directory for php-language-server. Create a composer.json file in it, with the following contents: + +``` +{ + "minimum-stability": "dev", + "prefer-stable": true +} +``` +Then, in the directory, run the following commands: + +``` +composer require felixfbecker/language-server +composer run-script --working-dir=vendor/felixfbecker/language-server parse-stubs +``` + +# 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. + +``` +{ + "minimum-stability": "dev", + "prefer-stable": true +} +``` +After editing your composer.json, you can install felixfbecker/php-language-server. The following instructions have been adapted from the installation section of php-language-server + +``` +composer global require felixfbecker/language-server +composer global run-script --working-dir=vendor/felixfbecker/language-server parse-stubs +``` + +Slightly altered from a guide found [here ](https://github.com/emacs-lsp/lsp-php). ## Running Start the language server with From 9ab1cb88a61989319218c34da6b6cea838c969e3 Mon Sep 17 00:00:00 2001 From: Levi Harman Date: Thu, 26 Apr 2018 18:28:43 -0500 Subject: [PATCH 2/6] Update README.md --- README.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b93d66ec..31f0b957 100644 --- a/README.md +++ b/README.md @@ -133,18 +133,9 @@ All classes are considered internal and are not subject to semver. ## Installation The recommended installation method is through [Composer](https://getcomposer.org/). -Simply run - composer require felixfbecker/language-server -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 -# Local installation +### Local Installation Create a directory for php-language-server. Create a composer.json file in it, with the following contents: ``` @@ -176,7 +167,15 @@ composer global require felixfbecker/language-server composer global run-script --working-dir=vendor/felixfbecker/language-server parse-stubs ``` -Slightly altered from a guide found [here ](https://github.com/emacs-lsp/lsp-php). + +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 Start the language server with From bb5c702aba1d7e413ab106238b455b406df46deb Mon Sep 17 00:00:00 2001 From: Levi Harman Date: Thu, 26 Apr 2018 18:30:54 -0500 Subject: [PATCH 3/6] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 31f0b957..b6119429 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ All classes are considered internal and are not subject to semver. The recommended installation method is through [Composer](https://getcomposer.org/). +```composer require felixfbecker/language-server``` ### Local Installation Create a directory for php-language-server. Create a composer.json file in it, with the following contents: From 7e070d0e98a27392aa6f61c550e35ebf25486cbd Mon Sep 17 00:00:00 2001 From: Levi Harman Date: Thu, 26 Apr 2018 18:36:35 -0500 Subject: [PATCH 4/6] Update README.md --- README.md | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b6119429..722c5e28 100644 --- a/README.md +++ b/README.md @@ -132,9 +132,7 @@ All classes are considered internal and are not subject to semver. ## Installation -The recommended installation method is through [Composer](https://getcomposer.org/). - -```composer require felixfbecker/language-server``` +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. ### Local Installation 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 ``` -# 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. ``` @@ -168,15 +166,6 @@ composer global require felixfbecker/language-server 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 Start the language server with From 1c1c729c865ed2a59b4b03ee19ec784a9f3dd16c Mon Sep 17 00:00:00 2001 From: Levi Harman Date: Thu, 26 Apr 2018 18:37:55 -0500 Subject: [PATCH 5/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 722c5e28..e1b8214f 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ Before installing php-language-server, make sure your ~/.config/composer/compose "prefer-stable": true } ``` -After editing your composer.json, you can install felixfbecker/php-language-server. The following instructions have been adapted from the installation section of php-language-server +After editing your composer.json, you can install felixfbecker/php-language-server. ``` composer global require felixfbecker/language-server From 4ca2b20e2dd5812d4ee1037a80f0cea4d82f353b Mon Sep 17 00:00:00 2001 From: Levi Harman Date: Thu, 26 Apr 2018 20:31:04 -0500 Subject: [PATCH 6/6] Update README.md --- README.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e1b8214f..f89d23dd 100644 --- a/README.md +++ b/README.md @@ -140,14 +140,21 @@ Create a directory for php-language-server. Create a composer.json file in it, w ``` { "minimum-stability": "dev", - "prefer-stable": true + "prefer-stable": true, + "require": { + "felixfbecker/language-server": "v5.4.0" + }, + "scripts": { + "parse-stubs": "LanguageServer\\ComposerScripts::parseStubs", + "post-update-cmd": "@parse-stubs", + "post-install-cmd": "@parse-stubs" + } } ``` Then, in the directory, run the following commands: ``` composer require felixfbecker/language-server -composer run-script --working-dir=vendor/felixfbecker/language-server parse-stubs ``` ### Global installation @@ -156,14 +163,22 @@ Before installing php-language-server, make sure your ~/.config/composer/compose ``` { "minimum-stability": "dev", - "prefer-stable": true + "prefer-stable": true, + "require": { + "felixfbecker/language-server": "v5.4.0" + }, + "scripts": { + "parse-stubs": "LanguageServer\\ComposerScripts::parseStubs", + "post-update-cmd": "@parse-stubs", + "post-install-cmd": "@parse-stubs" + } } + ``` After editing your composer.json, you can install felixfbecker/php-language-server. ``` composer global require felixfbecker/language-server -composer global run-script --working-dir=vendor/felixfbecker/language-server parse-stubs ``` ## Running