Skip to content

Commit

Permalink
Merge pull request #13 from viniciusgava/feature/add-support-to-php-7…
Browse files Browse the repository at this point in the history
….3-and-7.4

Add support to php 7.3 and 7.4. Drop support php 5.6, 7.0 and 7.1
  • Loading branch information
viniciusgava authored Apr 18, 2020
2 parents db6edaa + cc0047d commit 29b9fc5
Show file tree
Hide file tree
Showing 18 changed files with 73 additions and 1,703 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/vendor/
.idea
composer.lock
.phpunit.*
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

before_install:
- composer self-update
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,13 @@ print_r($client->languages());
)
*/
```

## Version Guidance

| Version | Status | Repo | PHP Version |
|---------|------------|----------------------|---------------|
| 2.* | Maintained | [v2][client-2-repo] | >= 5.6 <= 7.1 |
| 3.x | Latest | [v3][client-3-repo] | >= 7.2 |

[client-2-repo]: https://github.com/viniciusgava/google-translate-php-client/tree/2.1
[client-3-repo]: https://github.com/viniciusgava/google-translate-php-client
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
}
},
"require": {
"php": ">=5.6",
"guzzlehttp/guzzle": "^6.3.0"
"php": ">=7.2",
"guzzlehttp/guzzle": "~6.3.0",
"ext-json": "*"
},
"require-dev": {
"squizlabs/php_codesniffer": "*",
"phpunit/phpunit": "5.6.*"
"phpunit/phpunit": "^8"
}
}
Loading

0 comments on commit 29b9fc5

Please sign in to comment.