|
1 | 1 | # Getting Started |
2 | 2 |
|
3 | | -## Set up your PHP Environment (PHP 7.1 and Composer) |
| 3 | +## Set up your PHP Environment (PHP 7.2 and Composer) |
4 | 4 | Any 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 |
6 | 6 |
|
7 | 7 | ### 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) |
9 | 9 | 2. Download and install [Composer](https://getcomposer.org/download/) |
10 | 10 |
|
11 | 11 | Ensure 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` |
14 | 14 | 2. 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" $*` |
16 | 16 |
|
17 | 17 | ### Mac |
18 | 18 | 1. Install [Homebrew](http://brew.sh/) |
19 | | -2. Install PHP 7.1 and Composer |
| 19 | +2. Install PHP 7.2 and Composer |
20 | 20 | ``` |
21 | | -brew install php@7.1 |
| 21 | +brew install php@7.2 |
22 | 22 | brew install composer |
23 | 23 | ``` |
24 | 24 |
|
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`. |
26 | 26 | If 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` |
29 | 29 | 3. add it to your PATH in `~/.bash_profile`: `export PATH="/usr/local/sbin:$PATH"` |
30 | 30 |
|
31 | 31 | ## Reference `tolerant-php-parser` from your PHP project |
|
0 commit comments