microsoft / kiota-http-guzzle
Kiota HTTP Request Adapter implementation
Requires
- php: ^8.2
- ext-json: *
- ext-zlib: *
- guzzlehttp/guzzle: ^7.4.5 || ^8.0
- microsoft/kiota-abstractions: ^2.3.1
Requires (Dev)
- phpstan/phpstan: ^1.12.16
- phpunit/phpunit: ^9.6.22
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-26 17:02:47 UTC
README
The Kiota HTTP Library for PHP is the PHP HTTP library implementation with Guzzle.
A Kiota generated project will need a reference to a HTTP package to make HTTP requests to an API endpoint.
Read more about Kiota here.
Using the Kiota HTTP Library for PHP
run composer require microsoft/kiota-http-guzzle or add the following to your composer.json file:
{
"require": {
// x-release-please-start-version
"microsoft/kiota-http-guzzle": "^2.3.1"
// x-release-please-end
}
}
HTTP middleware order
The default Guzzle stack runs URL replacement, query parameter name decoding, User-Agent configuration, Guzzle redirects, retries, and header inspection in that order. The first three prepare the initial request only; a server-provided redirect target goes straight to the per-hop retry and inspection handlers.
Generated clients authenticate in the request adapter, and Guzzle handles response decompression. For
arbitrary requests, place any custom authentication middleware after User-Agent. Request compression
remains opt-in: insert KiotaMiddleware::compression() with
$stack->before('kiotaRedirectHandler', KiotaMiddleware::compression()) on the default stack, after any
custom authentication middleware.
Contributing
This project welcomes contributions and suggestions.This project welcomes contributions and suggestions. Issues and pull requests should be made against the kiota-php repository. This repository is only used for releases.
Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.