PHPackages                             tarkhov/guzzle-xml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. tarkhov/guzzle-xml

ActiveLibrary[HTTP &amp; Networking](/categories/http)

tarkhov/guzzle-xml
==================

Guzzle XML request and response.

v2.0.0(3mo ago)138.1k↓21.2%2[3 issues](https://github.com/tarkhov/guzzle-xml/issues)MITPHPPHP ^8.2

Since Jan 23Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/tarkhov/guzzle-xml)[ Packagist](https://packagist.org/packages/tarkhov/guzzle-xml)[ Docs](https://github.com/tarkhov/guzzle-xml)[ RSS](/packages/tarkhov-guzzle-xml/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (7)Used By (0)

Guzzle XML
==========

[](#guzzle-xml)

Guzzle XML request and response.

### Contents

[](#contents)

1. [Compatibility](#compatibility)
2. [Installation](#installation)
    1. [Composer](#composer)
3. [Usage](#usage)
    1. [Request options](#request-options)
    2. [Response](#response)
4. [Author](#author)
5. [License](#license)

Compatibility
-------------

[](#compatibility)

LibraryVersionPHP&gt;= 8.2Guzzle&gt;= 7.0Symfony Serializer&gt;= 7.0Laravel&gt;= 12.0Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require tarkhov/guzzle-xml
```

Usage
-----

[](#usage)

### Request options

[](#request-options)

Following example creates POST request with XML body. Option `xml` accepts an array that is converted to XML document. About array format and how converting works you can read in detail [Symfony XmlEncoder](https://symfony.com/doc/current/components/serializer.html#the-xmlencoder).

```
