alleyinteractive/wp-concurrent-remote-requests

Feature plugin for concurrent HTTP remote requests

Maintainers

👁 srtfisher

Package info

github.com/alleyinteractive/wp-concurrent-remote-requests

pkg:composer/alleyinteractive/wp-concurrent-remote-requests

Statistics

Installs: 554 513

Dependents: 2

Suggesters: 0

Stars: 5

Open Issues: 3

v1.1.1 2025-09-03 19:59 UTC

Requires

  • php: ^7.4 || ^8.0

Suggests

None

Provides

None

Conflicts

None

Replaces

None

GPL-2.0-or-later 630e20c0f968b286b736c5770b1dd26b975eb9f3

  • Sean Fisher <srtfisher.woop@gmail.com>

alleyinteractivewp-concurrent-remote-requests


README

Stable tag: 1.1.1

Requires at least: 5.9

Tested up to: 6.8

Requires PHP: 7.4

License: GPL v2 or later

Tags: alleyinteractive, wp-concurrent-remote-requests

Contributors: alleyinteractive, srtfisher

👁 All Pull Request Tests

A WordPress Feature plugin for concurrent HTTP remote requests in WordPress. Adds namespaced helper functions to make concurrent remote requests. Being tracked in WordPress/wordpress-develop#3022 and https://core.trac.wordpress.org/ticket/37459.

Installation

You can install the package via composer:

composer require alleyinteractive/wp-concurrent-remote-requests

Usage

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',
			],
		],
	]
);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The GNU General Public License (GPL) license. Please see License File for more information.