Skip to content

Support PHP 8, drop versions below 7.2 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: php
php:
- 7.0
- 7.2
- 7.3
- 7.4
- 8.0
before_script: composer install
script: vendor/bin/phpunit
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ This is a Laravel wrapper / bridge for the [Ably PHP](https://github.com/ably/ab

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.

## Supported Platforms

This SDK supports PHP 7.2+ and 8.0

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.

We'll happily support (and investigate reported problems with) any reasonably-widely-used PHP version.
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.

## Known Limitations

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.
Expand Down Expand Up @@ -95,6 +104,7 @@ This library uses [semantic versioning](http://semver.org/). For each release, t
* Visit https://github.com/ably/ably-php-laravel/tags and add release notes for the release including links to the changelog entry.
* Visit https://packagist.org/packages/ably/ably-php-laravel, log in to Packagist, and click the "Update" button.


## License

Copyright (c) 2017 Ably Real-time Ltd, Licensed under the Apache License, Version 2.0. Refer to [LICENSE](LICENSE) for the license terms.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
}
],
"require": {
"php": ">=5.4",
"ably/ably-php": "~1.0.1",
"php": "^7.2 || ^8.0",
"ably/ably-php": "~1.1.4",
"laravel/framework": ">=5.1.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion tests/AblyLaravelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class AblyLaravelTest extends Orchestra\Testbench\TestCase
{
const TEST_KEY = 'unit.test:key';

public function setUp()
public function setUp(): void
{
parent::setUp();

Expand Down