Skip to content

Commit 6b3b108

Browse files
authored
Update php.md
1 parent b438bd3 commit 6b3b108

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

user/languages/php.md

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
title: Building a PHP project
2+
title: Build a PHP project
33
layout: en
44

55
---
66

7-
## What This Guide Covers
87

98
<aside markdown="block" class="ataglance">
109

@@ -31,7 +30,7 @@ and [General Build configuration](/user/customizing-the-build/) guides first.
3130
3231
PHP builds are not available on the macOS environment.
3332
34-
## Choosing PHP versions to test against
33+
## Test against PHP versions
3534
3635
Travis CI provides several PHP versions, all of which include XDebug and
3736
PHPUnit. Travis CI uses [phpenv](https://github.com/CHH/phpenv) to manage the
@@ -63,37 +62,39 @@ php:
6362
{: data-file=".travis.yml"}
6463

6564
{% if site.data.language-details.php-versions.size > 0 %}
66-
### Supported PHP versions
65+
66+
### PHP Supported versions
6767

6868
The list of PHP versions available for on-demand installation can be found in
6969
[the table below](#php-versions).
7070

7171
{% else %}
72-
### PHP 5.2(.x) - 5.3(.x) support is available on Precise only
7372

74-
We do not support these versions on Trusty or Xenial or Bionic.
73+
### Support for PHP version 5.2(.x) and 5.3(.x) are available on Precise only
74+
75+
We do not support these versions on Trusty, Xenial, or Bionic.
7576
If you need to test them, please use Precise.
7677
See [this page](/user/reference/trusty/#php-images) for more information.
7778

78-
### PHP 5.4(.x) - 5.5(.x) support is available on Precise and Trusty only
79+
### Support for PHP versions 5.4(.x) - 5.5(.x) are available on Precise and Trusty
7980

8081
We do not support these versions on Xenial or Bionic.
8182
If you need to test them, please use Precise or Trusty.
8283
See [this page](/user/reference/xenial/#php-images) for more information.
8384

84-
### PHP 5.6(.x) - 7.0(.x) support is available on Precise, Trusty and Xenial only
85+
### Support for PHP versions 5.6(.x) - 7.0(.x) are available on Precise, Trusty, and Xenial
8586

8687
We do not support these versions on Bionic.
87-
If you need to test them, please use Precise or Trusty or Xenial.
88+
If you need to test them, please use Precise, Trusty, or Xenial.
8889
See [this page](/user/reference/bionic/#php-support) for more information.
8990

90-
### PHP 7.4(.x) onwards support is available on Trusty, Xenial and Bionic only
91+
### Support for PHP versions 7.4(.x) and onwards are available on Trusty, Xenial, and Bionic
9192

9293
We do not support these versions on Precise.
9394
If you need to test them, please use Trusty, Xenial, or Bionic.
9495
{% endif %}
9596

96-
### HHVM versions are available on Trusty only
97+
### Test HHVM versions with Trusty
9798

9899
Travis CI can test your PHP applications with HHVM on Ubuntu Trusty:
99100

@@ -144,7 +145,7 @@ and uses the first one found.
144145

145146
If your project uses something other than PHPUnit, you can [override the default build script](/user/customizing-the-build/).
146147

147-
### Working with atoum
148+
### Work with atoum
148149

149150
Instead of PHPunit, you can also use [atoum](https://github.com/atoum/atoum) to test your projects. For example:
150151

@@ -175,7 +176,7 @@ install:
175176
```
176177
{: data-file=".travis.yml"}
177178

178-
### Testing Against Multiple Versions of Dependencies
179+
### Test against Multiple Versions of Dependencies
179180

180181
If you need to test against multiple versions of, say, Symfony, you can instruct
181182
Travis CI to do multiple runs with different sets or values of environment
@@ -201,7 +202,7 @@ install:
201202
```
202203
{: data-file=".travis.yml"}
203204

204-
Here we use DB variable value to pick phpunit configuration file:
205+
Here, we use DB variable value to pick phpunit configuration file:
205206

206207
```yaml
207208
script: phpunit --configuration $DB.phpunit.xml
@@ -210,13 +211,13 @@ Here we use DB variable value to pick phpunit configuration file:
210211

211212
The same technique is often used to test projects against multiple databases and so on.
212213

213-
To see real world examples, see:
214+
To see real-world examples, see:
214215

215216
- [FOSRest](https://github.com/FriendsOfSymfony/FOSRest/blob/master/.travis.yml)
216217
- [LiipHyphenatorBundle](https://github.com/liip/LiipHyphenatorBundle/blob/master/.travis.yml)
217218
- [doctrine2](https://github.com/doctrine/doctrine2/blob/master/.travis.yml)
218219

219-
### Installing Composer packages
220+
### Install Composer packages
220221

221222
<div class="note-box">
222223
<p>
@@ -275,7 +276,7 @@ before_script: echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(php
275276
```
276277
{: data-file=".travis.yml"}
277278

278-
## Enabling preinstalled PHP extensions
279+
## Enable preinstalled PHP extensions
279280

280281
You need to enable them by adding an `extension="<extension>.so"` line to a PHP configuration file (for the current PHP version).
281282
The easiest way to do this is by using `phpenv` to add a custom config file which enables and eventually configure the extension:
@@ -302,7 +303,7 @@ before_install: echo "extension = <extension>.so" >> ~/.phpenv/versions/$(phpenv
302303
```
303304
{: data-file=".travis.yml"}
304305

305-
## Disabling preinstalled PHP extensions
306+
## Disable preinstalled PHP extensions
306307

307308
To disable xdebug, add this to your configuration:
308309

@@ -312,7 +313,7 @@ before_script:
312313
```
313314
{: data-file=".travis.yml"}
314315

315-
## Installing additional PHP extensions
316+
## Install additional PHP extensions
316317

317318
It is possible to install custom PHP extensions into the Travis CI environment
318319
using [PECL](http://pecl.php.net/), but they have to be built against the PHP
@@ -345,15 +346,14 @@ install specific version with the `-f` flag. For example:
345346
pecl install -f mongo-1.2.12
346347
```
347348

348-
### Note on `pecl install`
349+
### Note on pecl install
349350

350351
Note that `pecl install` can fail if the requested version of the package is already installed.
351352

352353

353-
354354
### Apache + PHP
355355

356-
Currently Travis CI does not support `mod_php` for apache, but you can configure
356+
Currently, Travis CI does not support `mod_php` for apache, but you can configure
357357
`php-fpm` for your integration tests:
358358

359359
```yaml
@@ -416,6 +416,7 @@ You can find more information on the build config format for [PHP](https://confi
416416
- [Drupal](https://github.com/sonnym/travis-ci-drupal-module-example)
417417

418418
{% if site.data.language-details.php-versions.size > 0 %}
419+
419420
## PHP versions
420421
These archives are available for on-demand installation.
421422

0 commit comments

Comments
 (0)