Resource icon

xF2 Beta Guzzle6 for XenForo 2 1.3.0

No permission to download
Compatible XF Versions
  1. 2.0
Additional Requirements
PHP 5.5.0+
XF 2.0 Beta 3
Due to PHP version constraints, XenForo 2.0 implements Guzzle 5.3 rather than the current Guzzle 6.x

This XenForo 2.0 addon replaces the built in libraries with Guzzle 6.x and provides a test suite to ensure functionality is preserved.

The only reason you would want to install this addon is if you have other addons which require Guzzle 6.

Requirements

This addon requires PHP 5.5 or higher and only works on XenForo 2.0.x

The current release has been tested with XenForo 2.0 Developer Preview 10 (DP10) and may require modifications to work with later releases.

The current version of Guzzle supplied with this addon is v6.3.0

Usage

Once installed, all calls to \XF::app()->http()->client() and \XF::app()->http()->reader() will be redirected via the Guzzle 6 libraries.

There have been breaking changes between the Guzzle v5 and v6 releases, primarily around the implementation of PSR-7 interfaces for requests, responses, and streams.

I have implemented a small test suite to check that functionality is preserved, but that is by no means exhaustive, so please proceed with caution.

A new admin menu item has been added to the Tools menu to run the test suite - it is strongly recommended that these tests be run after installation and after an upgrade.

View attachment 155673

Notes
  • I have not yet tested the code modifications for PayPal, Stripe or TwoCheckout - please proceed with caution
  • The Captcha test only tests the currently enabled Captcha. Some Captcha tools don't actually function without an API key (always return success), so you may not actually be testing the Guzzle code if you haven't fully configured that Captcha tool.
  • If you would like to contribute to the development of this addon, please feel free to fork it on BitBucket and submit Pull requests.
See also
Author
Admin
Size
252.9 KB
Extension
zip
Downloads
14
Views
1,955
First release
Last update

More resources from Admin

Latest updates

  1. Updates for XF 2.0.3-2.0.5 and XFMG 2.0.3-2.0.4a

    update for XF 2.0.3 - no longer need to modify XF\BbCode\ProcessorAction\AutoLink::fetchUrlHtml...
  2. Updates for XF 2.0.2 and XFMG 2.0.2

    From v1.1.1 (2018-02-02): updates for XF 2.0.2 - XF\Http\Reader ... disable new initListeners...
  3. Bugfixes and XFES support

    (from 1.1.0) added support for XenForo Elastic Search addon (from 1.0.6) bug fix: typo in if...

Similar resources

Add-on to Solve Emoji Issues in XenForo Admin
Our add-on helps you solve the issue with emojis in XenForo
0.00 star(s) 0 ratings
Downloads
1
Updated
Article and Forum Connect: XenForo and WordPress Admin
Sync comments between XenForo and WordPress with the method that works best for you.
0.00 star(s) 0 ratings
Downloads
12
Updated
Google Calendar for XenForo Admin
Add a calendar to your forum that can be managed from Google Calendar
0.00 star(s) 0 ratings
Downloads
7
Updated
PhpStorm Live Templates for XenForo 2 AnimeHaxor
Shortcuts and macros for various commonly-used development text snippets
0.00 star(s) 0 ratings
Downloads
9
Updated
Plugin for solving problems with emoji in XenForo v2.2.12 AnimeHaxor
The plugin will help you solve the problem with emoji in XenForo v2.2.12
0.00 star(s) 0 ratings
Downloads
1
Updated