Skip to content

Commit c222511

Browse files
authored
Merge pull request #9 from ably/feature/php-8
Support PHP 8, drop versions below 7.2
2 parents d6ac0c5 + 8281a86 commit c222511

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
language: php
22
php:
3-
- 7.0
3+
- 7.2
4+
- 7.3
5+
- 7.4
6+
- 8.0
47
before_script: composer install
58
script: vendor/bin/phpunit

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ This is a Laravel wrapper / bridge for the [Ably PHP](https://github.com/ably/ab
88

99
The PHP client library currently targets the [Ably 1.1 client library specification](https://www.ably.io/documentation/client-lib-development-guide/features/). You can jump to the '[Known Limitations](#known-limitations)' section to see the features the PHP client library does not yet support or [view our client library SDKs feature support matrix](https://www.ably.io/download/sdk-feature-support-matrix) to see the list of all the available features.
1010

11+
## Supported Platforms
12+
13+
This SDK supports PHP 7.2+ and 8.0
14+
15+
We regression-test the library against a selection of PHP versions (which will change over time, but usually consists of the versions that are supported upstream). Please refer to [the travis config](.travis.yml) for the set of versions that currently undergo CI testing.
16+
17+
We'll happily support (and investigate reported problems with) any reasonably-widely-used PHP version.
18+
If you find any compatibility issues, please [do raise an issue](https://github.com/ably/ably-php-laravel/issues/new) in this repository or [contact Ably customer support](https://support.ably.io/) for advice.
19+
1120
## Known Limitations
1221

1322
Currently, this SDK only supports [Ably REST](https://www.ably.io/documentation/rest). However, if you want to subscribe to events in PHP, you can use the [MQTT adapter](https://www.ably.io/documentation/mqtt) to implement [Ably's Realtime](https://www.ably.io/documentation/realtime) features in PHP.
@@ -95,6 +104,7 @@ This library uses [semantic versioning](http://semver.org/). For each release, t
95104
* Visit https://github.com/ably/ably-php-laravel/tags and add release notes for the release including links to the changelog entry.
96105
* Visit https://packagist.org/packages/ably/ably-php-laravel, log in to Packagist, and click the "Update" button.
97106

107+
98108
## License
99109

100110
Copyright (c) 2017 Ably Real-time Ltd, Licensed under the Apache License, Version 2.0. Refer to [LICENSE](LICENSE) for the license terms.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.4",
15-
"ably/ably-php": "~1.0.1",
14+
"php": "^7.2 || ^8.0",
15+
"ably/ably-php": "~1.1.4",
1616
"laravel/framework": ">=5.1.0"
1717
},
1818
"require-dev": {

tests/AblyLaravelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class AblyLaravelTest extends Orchestra\Testbench\TestCase
55
{
66
const TEST_KEY = 'unit.test:key';
77

8-
public function setUp()
8+
public function setUp(): void
99
{
1010
parent::setUp();
1111

0 commit comments

Comments
 (0)