Skip to content
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

Add Support for Laravel 10 #101

Merged
merged 4 commits into from
Feb 28, 2023
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
21 changes: 19 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ]
laravel: [ 7.*, 8.*, 9.* ]
laravel: [ 7.*, 8.*, 9.*, 10.* ]
guzzle: [ 6.*, 7.* ]
dependency-version: [ prefer-lowest, prefer-stable ]
include:
Expand All @@ -32,6 +32,9 @@ jobs:
- laravel: 9.*
testbench: 7.*

- laravel: 10.*
testbench: 8.*

exclude:
- laravel: 7.*
php: 8.1
Expand All @@ -57,6 +60,20 @@ jobs:
- laravel: 9.*
guzzle: 6.*

# Laravel 10 requires PHP 8.1
- laravel: 10.*
php: 7.2
- laravel: 10.*
php: 7.3
- laravel: 10.*
php: 7.4
- laravel: 10.*
php: 8.0

# Laravel 10 requires Guzzle ^7.2
- laravel: 10.*
guzzle: 7.*

name: P${{ matrix.php }} / L${{ matrix.laravel }} / G${{ matrix.guzzle }} / ${{ matrix.dependency-version }}

steps:
Expand All @@ -83,4 +100,4 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction

- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
],
"require": {
"php": "^7.2|^8.0",
"illuminate/support": "^7.0|^8.0|^9.0",
"illuminate/filesystem": "^7.0|^8.0|^9.0",
"illuminate/console": "^7.0|^8.0|^9.0",
"illuminate/support": "^7.0|^8.0|^9.0|^10",
"illuminate/filesystem": "^7.0|^8.0|^9.0|^10",
"illuminate/console": "^7.0|^8.0|^9.0|^10",
"maennchen/zipstream-php": "^2.1",
"guzzlehttp/guzzle": "^6.3|^7.2",
"aws/aws-sdk-php": "^3.216.1"
},
"require-dev": {
"orchestra/testbench": "^5|^6|^7",
"orchestra/testbench": "^5|^6|^7|^8",
"mockery/mockery": "^1.3.3",
"phpunit/phpunit": ">=8.5.23|^9"
},
Expand Down
4 changes: 2 additions & 2 deletions docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Sidecar packages, deploys, and executes AWS Lambda functions from your Laravel application. {.text-xl .font-bold}

It works with _any_ Laravel 7 or Laravel 8 application, hosted _anywhere_, including your local machine. {.font-bold}
It works with _any_ Laravel 7, 8, 9 or 10 application, hosted _anywhere_, including your local machine. {.font-bold}

You can write functions in any of the following runtimes and execute them straight from PHP:

Expand Down Expand Up @@ -128,4 +128,4 @@ If you need other services, you are encouraged to use the instances that Vapor h
**Sidecar does not provide a way to execute a function via HTTP. You must execute it from your Laravel app through the provided methods.**


Finally, Sidecar doesn't replace Vapor in any way. In fact, PHP is not even one of the default AWS supported runtimes!
Finally, Sidecar doesn't replace Vapor in any way. In fact, PHP is not even one of the default AWS supported runtimes!