Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 38c61fe

Browse files
authored
Merge pull request #74 from joelbutcher/feature/laravel-9-support
Laravel 9 Support
2 parents 30175f1 + e42c84e commit 38c61fe

File tree

4 files changed

+49
-19
lines changed

4 files changed

+49
-19
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest]
11-
php: ['7.3', '7.4', '8.0']
12-
13-
name: PHP ${{ matrix.php }} Test on ${{ matrix.os }}
11+
php: [ 7.3, 7.4, '8.0', 8.1 ]
12+
laravel: [ 7, 8, 9 ]
13+
exclude:
14+
- php: 7.3
15+
laravel: 9
16+
- php: 7.4
17+
laravel: 9
18+
19+
name: PHP ${{ matrix.php }} Test on ${{ matrix.os }} – Laravel ${{ matrix.laravel }}
1420

1521
steps:
1622
- name: Checkout
@@ -19,8 +25,8 @@ jobs:
1925
- name: Setup PHP
2026
uses: shivammathur/setup-php@v2
2127
with:
22-
php-version: ${{matrix.php}}
23-
28+
php-version: ${{matrix.php}}
29+
2430
- name: Install dependencies
2531
uses: php-actions/composer@v5
2632
with:
@@ -29,4 +35,4 @@ jobs:
2935
- name: Run composer test script
3036
uses: php-actions/composer@v5
3137
with:
32-
command: test
38+
command: test

.travis.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,32 @@ language: php
33
php:
44
- 7.3
55
- 7.4
6+
- 8.0
7+
# PHP 8.1 isn't currently support by Travis CI
8+
# - 8.1
69

7-
before_script:
8-
- travis_retry composer self-update
9-
- travis_retry composer install --prefer-source --no-interaction
10+
env:
11+
- ILLUMINATE_VERSION=^7.0 TESTBENCH_VERSION=5.*
12+
- ILLUMINATE_VERSION=^8.0 TESTBENCH_VERSION=6.*
13+
- ILLUMINATE_VERSION=^9.0 TESTBENCH_VERSION=^7.0
14+
15+
matrix:
16+
exclude:
17+
# Don't test Laravel 9 on PHP 7.3 or PHP 7.4, as the mininmum
18+
# required PHP version for this Laravel version is 8.0.2
19+
- php: 7.3
20+
env: ILLUMINATE_VERSION=^9.0 TESTBENCH_VERSION=^7.0
21+
- php: 7.4
22+
env: ILLUMINATE_VERSION=^9.0 TESTBENCH_VERSION=^7.0
23+
24+
before_install:
25+
- composer require "illuminate/routing:${ILLUMINATE_VERSION}" --no-update --prefer-dist
26+
- composer require "illuminate/support:${ILLUMINATE_VERSION}" --no-update --prefer-dist
27+
- composer require "orchestra/testbench:${TESTBENCH_VERSION}" --no-update --prefer-dist
28+
29+
install: travis_retry composer install --prefer-source --no-interaction
30+
31+
script:
32+
- composer test
1033

1134
fast_finish: true

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Available reCAPTCHA versions:
1414

1515
## System requirements
1616

17-
| Package | reCAPTCHA | PHP | Laravel | Docs |
18-
| -------------- | ----------------------------- | --------------------- | ---------------------------- | ---------------------------------------------------------------------- |
19-
| 5.x | v3, v2 Invisible, v2 Checkbox | 7.3 or greater | 7, 8 | [latest](https://laravel-recaptcha-docs.biscolab.com) |
20-
| 4.2.x to 4.4.x | v3, v2 Invisible, v2 Checkbox | 7.1 or greater | 5.5 or greater, 6, 7, 8 | [v4.4.x](https://laravel-recaptcha-docs.biscolab.com/docs/4.4.x/intro) |
21-
| 4.1.x | v3, v2 Invisible, v2 Checkbox | 7.1 or greater | 5.5 or greater, 6, 7 | [v4.1.x](https://laravel-recaptcha-docs.biscolab.com/docs/4.1.x/intro) |
22-
| 4.0.x | v3, v2 Invisible, v2 Checkbox | 7.1 or greater | 5.5 or greater, 6 | [v4.0.x](https://laravel-recaptcha-docs.biscolab.com/docs/4.0.x/intro) |
23-
| 3.x | v3, v2 Invisible, v2 Checkbox | 7.1 or greater | 5.5 or greater, 6 ready (\*) | [v3.6.1](https://laravel-recaptcha-docs.biscolab.com/docs/3.6.1/intro) |
24-
| 2.x | v2 Invisible, v2 Checkbox | 5.5.9, 7.0 or greater | 5.0 or greater | [v2.0.4](https://laravel-recaptcha-docs.biscolab.com/docs/2.0.4/intro) |
17+
| Package | reCAPTCHA | PHP | Laravel | Docs |
18+
| -------------- | ----------------------------- | --------------------- |------------------------------------------| ---------------------------------------------------------------------- |
19+
| 5.x | v3, v2 Invisible, v2 Checkbox | 7.3 or greater | 7, 8 & 9 (requires PHP 8.0.2 or greater) | [latest](https://laravel-recaptcha-docs.biscolab.com) |
20+
| 4.2.x to 4.4.x | v3, v2 Invisible, v2 Checkbox | 7.1 or greater | 5.5 or greater, 6, 7, 8 | [v4.4.x](https://laravel-recaptcha-docs.biscolab.com/docs/4.4.x/intro) |
21+
| 4.1.x | v3, v2 Invisible, v2 Checkbox | 7.1 or greater | 5.5 or greater, 6, 7 | [v4.1.x](https://laravel-recaptcha-docs.biscolab.com/docs/4.1.x/intro) |
22+
| 4.0.x | v3, v2 Invisible, v2 Checkbox | 7.1 or greater | 5.5 or greater, 6 | [v4.0.x](https://laravel-recaptcha-docs.biscolab.com/docs/4.0.x/intro) |
23+
| 3.x | v3, v2 Invisible, v2 Checkbox | 7.1 or greater | 5.5 or greater, 6 ready (\*) | [v3.6.1](https://laravel-recaptcha-docs.biscolab.com/docs/3.6.1/intro) |
24+
| 2.x | v2 Invisible, v2 Checkbox | 5.5.9, 7.0 or greater | 5.0 or greater | [v2.0.4](https://laravel-recaptcha-docs.biscolab.com/docs/2.0.4/intro) |
2525

2626
> (\*) Latest version (3.6.1) is Laravel 6 ready
2727

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
],
2222
"require": {
2323
"php": "^7.3|^8.0",
24-
"laravel/framework": "^7.0|^8.0"
24+
"illuminate/routing": "^7.0|^8.0|^9.0",
25+
"illuminate/support": "^7.0|^8.0|^9.0"
2526
},
2627
"require-dev": {
27-
"orchestra/testbench": "5.*|6.*",
28+
"orchestra/testbench": "5.*|6.*|^7.0",
2829
"phpunit/phpunit": "^9.1"
2930
},
3031
"autoload": {

0 commit comments

Comments
 (0)