Skip to content

Releases: phpro/http-tools

Version 2.14.0

02 Apr 09:07
2.14.0
27a1835

Choose a tag to compare

What's Changed

  • Add ResourceStream encoder and decoder by @veewee in #50
  • Add ContentTypeAwarePayload and ContentTypeAwareEncoder by @veewee in #51

Full Changelog: 2.13.0...2.14.0

Version 2.13.0

27 Mar 14:55
2.13.0
fff383f

Choose a tag to compare

What's Changed

  • Bump minimum PHP to 8.4, replace monolithic PSL with standalone packages by @veewee in #49

Full Changelog: 2.12.0...2.13.0

Version 2.12.0

19 Mar 10:31
2.12.0
f5051c1

Choose a tag to compare

What's Changed

Full Changelog: 2.11.0...2.12.0

Version 2.11.0

13 Mar 06:12
2.11.0
5230124

Choose a tag to compare

What's Changed

Full Changelog: 2.10.0...2.11.0

Version 2.10.0

05 Jan 12:56
2.10.0
cbf20f6

Choose a tag to compare

What's Changed

Full Changelog: 2.9.0...2.10.0

Version 2.9.0

02 Dec 14:09
2.9.0
ca65dea

Choose a tag to compare

What's Changed

  • Introduce a generic reusable HTTP client builder by @veewee in #45
<?php

$client = ClientBuilder::default(SymfonyClientFactory::create([]))
    ->addBaseUri('https://www.google.com')
    ->addHeaders([
        'x-Foo' => 'bar',
    ])
    ->addAuthentication(new BasicAuth('user', 'pass'))
    ->addLogger(
        new ConsoleLogger(new ConsoleOutput(OutputInterface::VERBOSITY_DEBUG)),
        FormatterBuilder::default()
            ->withDebug(true)
            ->withMaxBodyLength(1000)
            ->addDecorator(RemoveSensitiveHeadersFormatter::createDecorator([
                'X-SENSITIVE-HEADER',
            ]))
            ->build()
    )
    // ....
    ->build();

Full Changelog: 2.8.0...2.9.0

Version 2.8.0

21 Oct 07:49
2.8.0
5b1fa94

Choose a tag to compare

What's Changed

  • feat: Upgrade to PHP 8.5, remove PHP 8.2 support by @veewee in #44

Full Changelog: 2.7.0...2.8.0

Version 2.7.0

06 Oct 12:31
2.7.0
4371d07

Choose a tag to compare

What's Changed

  • Introduce form urlencoded transport by @veewee in #43

Full Changelog: 2.6.0...2.7.0

Version 2.6.0

06 Feb 06:26
2.6.0
7865f4c

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.5.0...2.6.0

Version 2.5.0

09 Sep 12:54
2.5.0
69018d6

Choose a tag to compare

What's Changed

  • Implement http exception to be compatible with HTTP mock client by @veewee in #41

Full Changelog: 2.4.0...2.5.0