PHP code example of alleyinteractive / wp-concurrent-remote-requests

1. Go to this page and download the library: Download alleyinteractive/wp-concurrent-remote-requests library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alleyinteractive / wp-concurrent-remote-requests example snippets


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