Skip to content

Commit 33fcb47

Browse files
authored
chore: update deps to work with Laravel 12 (#11)
* update deps * remove php 7 support * update php tests * update allowed plugins * remove php 8.0
1 parent 1ecf5bb commit 33fcb47

File tree

2 files changed

+49
-46
lines changed

2 files changed

+49
-46
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest]
16-
php: [7.4, 8.0, 8.1]
16+
php: [8.1]
1717
stability: [prefer-lowest, prefer-stable]
1818

1919
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

composer.json

Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,51 @@
11
{
2-
"name": "knocklabs/knockphp",
3-
"description": "Knock PHP SDK",
4-
"type": "library",
5-
"license": "MIT",
6-
"authors": [
7-
{
8-
"name": "Knock",
9-
"email": "[email protected]",
10-
"homepage": "https://knock.app/"
2+
"name": "knocklabs/knockphp",
3+
"description": "Knock PHP SDK",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Knock",
9+
"email": "[email protected]",
10+
"homepage": "https://knock.app/"
11+
}
12+
],
13+
"require": {
14+
"php": "^8.0",
15+
"ext-json": "*",
16+
"league/uri-components": "^7.5.1",
17+
"php-http/client-common": "^2.5",
18+
"php-http/discovery": "^1.14",
19+
"php-http/httplug": "^2.3",
20+
"php-http/message-factory": "^1.0",
21+
"php-http/multipart-stream-builder": "^1.2",
22+
"psr/http-message": "^2.0",
23+
"psr/http-client-implementation": "^1.0",
24+
"psr/http-factory-implementation": "^1.0"
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"Knock\\KnockSdk\\": "src/"
29+
}
30+
},
31+
"autoload-dev": {
32+
"psr-4": {
33+
"Tests\\": "tests/"
34+
}
35+
},
36+
"config": {
37+
"optimize-autoloader": true,
38+
"sort-packages": true,
39+
"allow-plugins": {
40+
"php-http/discovery": true
41+
}
42+
},
43+
"require-dev": {
44+
"friendsofphp/php-cs-fixer": "^3.8",
45+
"php-http/mock-client": "^1.5",
46+
"phpstan/phpstan": "^1.7",
47+
"phpstan/phpstan-phpunit": "^1.1",
48+
"phpunit/phpunit": "^9.5",
49+
"http-interop/http-factory-guzzle": "^1.2"
1150
}
12-
],
13-
"require": {
14-
"php": "^7.4 || ^8.0",
15-
"ext-json": "*",
16-
"league/uri-components": "^2.4",
17-
"php-http/client-common": "^2.5",
18-
"php-http/discovery": "^1.14",
19-
"php-http/httplug": "^2.3",
20-
"php-http/message-factory": "^1.0",
21-
"php-http/multipart-stream-builder": "^1.2",
22-
"psr/http-message": "^1.0",
23-
"psr/http-client-implementation": "^1.0",
24-
"psr/http-factory-implementation": "^1.0"
25-
},
26-
"autoload": {
27-
"psr-4": {
28-
"Knock\\KnockSdk\\": "src/"
29-
}
30-
},
31-
"autoload-dev": {
32-
"psr-4": {
33-
"Tests\\": "tests/"
34-
}
35-
},
36-
"config": {
37-
"optimize-autoloader": true,
38-
"sort-packages": true
39-
},
40-
"require-dev": {
41-
"friendsofphp/php-cs-fixer": "^3.8",
42-
"php-http/mock-client": "^1.5",
43-
"phpstan/phpstan": "^1.7",
44-
"phpstan/phpstan-phpunit": "^1.1",
45-
"phpunit/phpunit": "^9.5",
46-
"http-interop/http-factory-guzzle": "^1.2"
47-
}
4851
}

0 commit comments

Comments
 (0)