Search by

microsoft / kiota-http-guzzle

graphsdkpub

Kiota HTTP Request Adapter implementation

Package info

github.com/microsoft/kiota-http-guzzle-php

pkg:composer/microsoft/kiota-http-guzzle

Statistics

Installs: 6 450 474

Dependents: 14

Suggesters: 0

Stars: 10

2.3.1 2026-11-26 17:02 UTC

README

Build Status Latest Stable Version

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.