Skip to content

Commit 217a3b1

Browse files
CodeDreddGregor BeckerStyleCIBot
authored
feat(laravel-soap-179)!: Add PHP 8.1 & Laravel 9 Support (#190)
* feat(laravel-soap-179)!: Add PHP 8.1 Support & Laravel 9 BREAKING CHANGE: raised php lvl min to 8.0, disabled commands (because wsdlToPhp package is not compatible with php 8), renamed functions Migration form v2 to v3: - `setHandler` renamed to `setTransport` - `getHandler` renamed to `getHandler` - `withHandlerOptions` renamed to `withGuzzleClientOptions` * refactor(laravel-soap-179): Apply review discussion - Added Flattingloader - Using SoapActionDetector - bit more code clean up to PHP 8 standard * refactor(laravel-soap-179): Update last not working middlewares * Apply fixes from StyleCI (#191) Co-authored-by: StyleCI Bot <[email protected]> * Apply fixes from StyleCI (#192) Co-authored-by: StyleCI Bot <[email protected]> * Apply fixes from StyleCI (#193) Co-authored-by: StyleCI Bot <[email protected]> Co-authored-by: Gregor Becker <[email protected]> Co-authored-by: StyleCI Bot <[email protected]>
1 parent f883fab commit 217a3b1

34 files changed

+2297
-2154
lines changed

.github/workflows/tests81.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: test
2+
3+
on: push
4+
5+
jobs:
6+
phpunit:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: '8.1'
17+
extensions: mbstring, intl
18+
ini-values: post_max_size=256M, max_execution_time=180
19+
coverage: xdebug
20+
tools: php-cs-fixer, phpunit
21+
22+
- name: Composer dependencies
23+
run: composer install --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
24+
25+
- name: Run Testsuite
26+
run: vendor/bin/phpunit tests/

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
[![documentation](https://img.shields.io/github/workflow/status/codedredd/laravel-soap/documentation?label=docs&logo=read-the-docs&style=flat-square)](https://codedredd.github.io/laravel-soap/)
99

1010
## Versions
11-
Laravel SOAP Version | Laravel Support
12-
-------- | ------------------
13-
1.x | 5.6, 6.x, 7x
14-
2.x | 8.x
15-
11+
Laravel SOAP Version | Laravel Support | PHP Version
12+
-------- | ------------------ | -------------
13+
1.x | 5.6, 6.x, 7x | 7.3 - 8.0
14+
2.x | 8.x | 7.3 - 8.0
15+
3.x | 8.x, 9.x | 8.0 - 8.1
1616
<a name="installation"></a>
1717
## Installation
1818

composer.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,30 @@
1010
}
1111
],
1212
"require": {
13-
"php": ">=7.3.0",
13+
"php": "^8.0 || 8.1",
1414
"ext-soap": "*",
15+
"ext-bcmath": "*",
16+
"ext-intl": "*",
1517
"ext-json": "*",
1618
"ext-dom": "*",
1719
"ext-simplexml": "*",
18-
"illuminate/support": "^8.0",
19-
"phpro/soap-client": "^1.4",
20+
"illuminate/support": "^8.0 || ^9.0",
21+
"phpro/soap-client": "^v2.1.0",
2022
"php-http/guzzle7-adapter": "^1.0",
2123
"php-http/discovery": "^1.7",
2224
"php-http/message": "^1.8",
2325
"php-http/client-common": "^2.1",
24-
"robrichards/wse-php": "^2.0"
26+
"robrichards/wse-php": "^2.0",
27+
"php-soap/psr18-transport": "^1.2",
28+
"php-soap/psr18-wsse-middleware": "^1.1",
29+
"php-http/mock-client": "^1.5"
2530
},
2631
"require-dev": {
2732
"symfony/var-dumper": "^5.0",
28-
"symfony/options-resolver": "5.2.2 as 3.1.1",
33+
"symfony/options-resolver": "^5.4.3",
2934
"phpunit/phpunit": "^9.1",
30-
"orchestra/testbench": "^6.0",
31-
"laminas/laminas-code": "^3.4",
32-
"wsdl2phpgenerator/wsdl2phpgenerator": "3.4.0"
35+
"orchestra/testbench": "^6.0 || ^7.0",
36+
"laminas/laminas-code": "^4.5.1"
3337
},
3438
"autoload": {
3539
"psr-4": {

0 commit comments

Comments
 (0)