Stable tag: 0.1.0
Requires at least: 5.9
Tested up to: 5.9
Requires PHP: 7.4
License: GPL v2 or later
Tags: alleyinteractive, wp-concurrent-remote-requests
Contributors: alleyinteractive, srtfisher
A WordPress Feature plugin for concurrent HTTP remote requests in WordPress. Adds namespaced helper functions to make concurrent remote requests. Being tracked in #2 and https://core.trac.wordpress.org/ticket/37459.
You can install the package via composer:
composer require alleyinteractive/wp-concurrent-remote-requests
Activate the plugin in WordPress and use it like so:
// Supports an array of URLs:
\Alley\WP\Concurrent_Remote_Requests\wp_remote_get(
[
'https://alley.co/',
'https://wordpress.org/',
]
);
// Or more complex requests.
\Alley\WP\Concurrent_Remote_Requests\wp_remote_request(
[
[
'https://alley.co/',
[
'body' => [ ... ],
'method' => 'POST',
],
],
[
'https://wordpress.org/',
[
'method' => 'DELETE',
],
],
]
);
composer test
Please see CHANGELOG for more information on what has changed recently.
The GNU General Public License (GPL) license. Please see License File for more information.