Skip to content

fix: support Guzzle 8 - #207

Closed
kOld wants to merge 3 commits into
openai-php:mainfrom
kOld:chore/support-guzzle-8
Closed

fix: support Guzzle 8#207
kOld wants to merge 3 commits into
openai-php:mainfrom
kOld:chore/support-guzzle-8

Conversation

@kOld

@kOld kOld commented Aug 19, 2026

Copy link
Copy Markdown

Summary

This package currently requires Guzzle ^7.9.3 even though its integration uses the PSR-compatible Guzzle client. This widens the requirement to allow Guzzle 8.

Guzzle 8 has stricter constructor configuration types, so the request timeout now uses Laravel's typed config accessor: config()->integer('openai.request_timeout', 30).

No workflow changes are needed: the existing prefer-stable matrix resolves Guzzle 8 for Laravel 13, while Laravel 11/12 and prefer-lowest remain on Guzzle 7 because of their framework constraints.

Validation

  • composer validate --strict
  • Composer dry-run: Laravel 13 + prefer-stable resolves Guzzle 8.0.2
  • Composer dry-run: Laravel 13 + prefer-lowest resolves Guzzle 7.9.x
  • Composer dry-run: Laravel 11/12 + prefer-stable resolve Guzzle 7.15.3
  • composer test with Laravel 13 and Guzzle 8: Pint, PHPStan, architecture/facade/service-provider tests; 21 passed, 27 assertions
  • git diff --check

Related work

I searched the open pull requests for Guzzle-related work. PR #127 is about a PSR-18-compatible Laravel HTTP wrapper, not Guzzle 8 support, so this addresses a separate compatibility gap.

@iBotPeaches

Copy link
Copy Markdown
Collaborator

Hmm this matrix is going to get insane if we have to add Guzzle to it. On top of Laravel, PHP and Pest. I can probably drop Pest to only 4/5. I'll wait till this stabilizes and brainstorm.

@kOld

kOld commented Aug 20, 2026

Copy link
Copy Markdown
Author

Closing this draft for now so we do not leave exploratory compatibility work open while upstream direction is unsettled. Thank you for the review.

@kOld kOld closed this Aug 20, 2026
@iBotPeaches

Copy link
Copy Markdown
Collaborator

Yeah no worries. I appreciate the work. I will take it from wherever you end it. I just saw your earlier commits of another matrix which got me thinking.

@kOld
kOld deleted the chore/support-guzzle-8 branch August 20, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants