From 0decf169cc14d5eafd4cf5c44083b28bdc195049 Mon Sep 17 00:00:00 2001 From: Yanmii Date: Mon, 4 May 2020 22:00:30 +0100 Subject: [PATCH 1/2] GettingStarted: Update composer instructions Deprecation warning: require.Microsoft/tolerant-php-parser is invalid, it should not contain uppercase characters. Please use microsoft/tolerant-php-parser instead. Make sure you fix this as Composer 2.0 will error. --- docs/GettingStarted.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index 80ead109..70f7c92d 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -40,11 +40,11 @@ In your project's `composer.json`, specify the `minimum-stability`, "repositories": [ { "type": "git", - "url": "https://github.com/Microsoft/tolerant-php-parser.git" + "url": "https://github.com/microsoft/tolerant-php-parser.git" } ], "require": { - "Microsoft/tolerant-php-parser": "master" + "microsoft/tolerant-php-parser": "master" } } ``` From daa2368d82c820cad19d1e04b6803959680120dd Mon Sep 17 00:00:00 2001 From: Yanmii Date: Mon, 4 May 2020 22:08:56 +0100 Subject: [PATCH 2/2] GettingStarted: Update instructions to PHP 7.2 PHP 7.1 is no longer supported, and the project targets PHP 7.2 according to .travis.yml --- docs/GettingStarted.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index 70f7c92d..ea85dabf 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -1,31 +1,31 @@ # Getting Started -## Set up your PHP Environment (PHP 7.1 and Composer) +## Set up your PHP Environment (PHP 7.2 and Composer) Any version of PHP 7 should work, but as we are still in our early -stages, the "golden path" for now will be PHP 7.1 +stages, the "golden path" for now will be PHP 7.2 ### Windows -1. Download [PHP 7.1](http://windows.php.net/download#php-7.1) +1. Download [PHP 7.2](http://windows.php.net/download#php-7.2) 2. Download and install [Composer](https://getcomposer.org/download/) Ensure your version of PHP is properly configured by running `php -v` in the command prompt. -If it's not PHP 7.1, then you have a few different options for how to access it: -1. reference it directly: `c:\PHP7.1\php.exe -v` +If it's not PHP 7.2, then you have a few different options for how to access it: +1. reference it directly: `c:\PHP7.2\php.exe -v` 2. Prepend the directory to your system `PATH` -3. create an alias using `doskey`: `doskey php7="C:\PHP7.1\php.exe" $*` +3. create an alias using `doskey`: `doskey php7="C:\PHP7.2\php.exe" $*` ### Mac 1. Install [Homebrew](http://brew.sh/) -2. Install PHP 7.1 and Composer +2. Install PHP 7.2 and Composer ``` -brew install php@7.1 +brew install php@7.2 brew install composer ``` -Ensure your version of PHP is properly configured by running `php -v`. +Ensure your version of PHP is properly configured by running `php -v`. If it's not PHP7, then you have a few different options for how to access it: -1. reference it directly: `/usr/local/Cellar/php71/7.1.0_11/bin/php -v` -2. alias it in your `~/.bash_profile`: `alias php7=/usr/local/Cellar/php71/7.1.0_11/bin/php` +1. reference it directly: `/usr/local/Cellar/php@7.2/7.2.30/bin/php -v` +2. alias it in your `~/.bash_profile`: `alias php7=/usr/local/Cellar/php@7.2/7.2.30/bin/php` 3. add it to your PATH in `~/.bash_profile`: `export PATH="/usr/local/sbin:$PATH"` ## Reference `tolerant-php-parser` from your PHP project