Skip to content

Commit b4c3054

Browse files
committed
Use HTTPlug and remove dependency on Guzzle
1 parent d7ccc20 commit b4c3054

File tree

11 files changed

+468
-559
lines changed

11 files changed

+468
-559
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ artifacts/
22
vendor/
33
.php_cs.cache
44
.phpunit.result.cache
5+
.php-cs-fixer.cache
6+
phpunit.xml

UPGRADE-6.0.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# UPGRADE FROM 5.x to 6.0
2+
3+
Several major changes in version 6.0:
4+
- Requires PHP 8.1
5+
- The factory has been removed. Use `new` to construct your FeedIO instance: `new \FeedIo\FeedIo($client, $logger)`
6+
- Guzzle comes no longer bundled with a default HTTP Client, but uses HTTPlug instead. To continue using Guzzle, please require `php-http/guzzle7-adapter`.

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"ext-dom": "*",
2020
"ext-json": "*",
2121
"ext-libxml": "*",
22-
"guzzlehttp/guzzle": "~6.2|~7.0",
23-
"psr/log": "~1.0|~2.0|~3.0"
22+
"psr/log": "~1.0|~2.0|~3.0",
23+
"php-http/httplug": "^2.3",
24+
"nyholm/psr7": "^1.5"
2425
},
2526
"require-dev": {
2627
"phpunit/phpunit": "~9.3.0",
@@ -29,7 +30,8 @@
2930
"friendsofphp/php-cs-fixer": "^3.5"
3031
},
3132
"suggest": {
32-
"monolog/monolog": "Allows to handle logs"
33+
"monolog/monolog": "Allows to handle logs",
34+
"php-http/guzzle7-adapter": "Handles HTTP requests and responses"
3335
},
3436
"autoload": {
3537
"psr-4": {"FeedIo\\": "src/FeedIo"}

0 commit comments

Comments
 (0)