Skip to content

Commit 07778da

Browse files
committed
Update README.md
1 parent 3e691a6 commit 07778da

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,29 @@ An example Braintree integration for PHP.
55

66
1. Install composer within the example directory. You can find instructions on how to install composer [on composer's site](https://getcomposer.org/download/).
77

8-
2. Run composer
9-
`php composer.phar install`
8+
2. Run composer:
9+
10+
```sh
11+
php composer.phar install
12+
```
1013

1114
Or if you installed composer globally:
12-
`composer install`
1315

14-
3. Copy the `example.env` file to `.env` and fill in your Braintree API credentials. Credentials can be found by navigating to Account > My user > View API Keys in the Braintree control panel. Full instructions can be [found on our support site](https://articles.braintreepayments.com/control-panel/important-gateway-credentials#api-credentials).
16+
```sh
17+
composer install
18+
```
19+
20+
3. Copy the `example.env` file to `.env` and fill in your Braintree API credentials. Credentials can be found by navigating to Account > My User > View Authorizations in the Braintree Control Panel. Full instructions can be [found on our support site](https://articles.braintreepayments.com/control-panel/important-gateway-credentials#api-credentials).
21+
22+
4. Start the internal PHP server on port 3000:
1523

16-
4. Start the internal PHP server on port 3000
17-
`php -S localhost:3000 -t public_html`
24+
```sh
25+
php -S localhost:3000 -t public_html
26+
```
1827

1928
## Running Tests
2029

21-
All tests are integration tests. Integration tests make api calls to Braintree and require that you set up your Braintree credentials. You can run this project's integration tests by adding your sandbox api credentials to `.env` and running `./vendor/bin/phpunit --testsuite integration` on the command line.
30+
All tests are integration tests. Integration tests make API calls to Braintree and require that you set up your Braintree credentials. You can run this project's integration tests by adding your sandbox API credentials to `.env` and running `./vendor/bin/phpunit --testsuite integration` on the command line.
2231

2332
## Pro Tips
2433

0 commit comments

Comments
 (0)