11# Getting Started
22
3- ## Set up your PHP Environment (PHP 7.1 and Composer)
3+ ## Set up your PHP Environment (PHP 7.2 and Composer)
44Any version of PHP 7 should work, but as we are still in our early
5- stages, the "golden path" for now will be PHP 7.1
5+ stages, the "golden path" for now will be PHP 7.2
66
77### Windows
8- 1 . Download [ PHP 7.1 ] ( http://windows.php.net/download#php-7.1 )
8+ 1 . Download [ PHP 7.2 ] ( http://windows.php.net/download#php-7.2 )
992 . Download and install [ Composer] ( https://getcomposer.org/download/ )
1010
1111Ensure your version of PHP is properly configured by running ` php -v ` in the command prompt.
12- If it's not PHP 7.1 , then you have a few different options for how to access it:
13- 1 . reference it directly: ` c:\PHP7.1 \php.exe -v `
12+ If it's not PHP 7.2 , then you have a few different options for how to access it:
13+ 1 . reference it directly: ` c:\PHP7.2 \php.exe -v `
14142 . Prepend the directory to your system ` PATH `
15- 3 . create an alias using ` doskey ` : ` doskey php7="C:\PHP7.1 \php.exe" $* `
15+ 3 . create an alias using ` doskey ` : ` doskey php7="C:\PHP7.2 \php.exe" $* `
1616
1717### Mac
18181 . Install [ Homebrew] ( http://brew.sh/ )
19- 2 . Install PHP 7.1 and Composer
19+ 2 . Install PHP 7.2 and Composer
2020```
21- brew install php@7.1
21+ brew install php@7.2
2222brew install composer
2323```
2424
25- Ensure your version of PHP is properly configured by running ` php -v ` .
25+ Ensure your version of PHP is properly configured by running ` php -v ` .
2626If it's not PHP7, then you have a few different options for how to access it:
27- 1 . reference it directly: ` /usr/local/Cellar/php71 /7.1.0_11 /bin/php -v `
28- 2 . alias it in your ` ~/.bash_profile ` : ` alias php7=/usr/local/Cellar/php71 /7.1.0_11 /bin/php `
27+ 1 . reference it directly: ` /usr/local/Cellar/php@7.2 /7.2.30 /bin/php -v `
28+ 2 . alias it in your ` ~/.bash_profile ` : ` alias php7=/usr/local/Cellar/php@7.2 /7.2.30 /bin/php `
29293 . add it to your PATH in ` ~/.bash_profile ` : ` export PATH="/usr/local/sbin:$PATH" `
3030
3131## Reference ` tolerant-php-parser ` from your PHP project
@@ -40,11 +40,11 @@ In your project's `composer.json`, specify the `minimum-stability`,
4040 "repositories" : [
4141 {
4242 "type" : " git" ,
43- "url" : " https://github.com/Microsoft /tolerant-php-parser.git"
43+ "url" : " https://github.com/microsoft /tolerant-php-parser.git"
4444 }
4545 ],
4646 "require" : {
47- "Microsoft /tolerant-php-parser" : " master"
47+ "microsoft /tolerant-php-parser" : " master"
4848 }
4949}
5050```
0 commit comments