Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 25, 2017
1 parent 63398c9 commit 1a77ae6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ php:
- 5.6
- 7.0
- 7.1
- 7.2

env:
matrix:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@ By default the command will only copy over `php`-files. Want to copy over all fi
$ php7to5 convert {$directoryWithPHP7Code} {$destinationWithPHP5Code} --copy-all
```

The command uses an extension for the php - *.php, you can make your set of extensions.
By default the command will only convert files with a php extension, but you can customize that by using the `--extension` option.

```bash
$ php7to5 convert {$directoryWithPHP7Code} {$destinationWithPHP5Code} --extension=php --extenstion=phtml
$ php7to5 convert {$directoryWithPHP7Code} {$destinationWithPHP5Code} --extension=php --extension=phtml
```

If necessary, you can exclude directories / files.

```bash
$ php7to5 convert {$directoryWithPHP7Code} {$destinationWithPHP5Code} --exсlude=cache --extenstion=vendor/package
$ php7to5 convert {$directoryWithPHP7Code} {$destinationWithPHP5Code} --exсlude=cache
```

## Programmatically convert files
Expand Down

0 comments on commit 1a77ae6

Please sign in to comment.