GithubHelp home page GithubHelp logo

isabella232 / wp-concurrent-remote-requests Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alleyinteractive/wp-concurrent-remote-requests

0.0 0.0 0.0 172 KB

Feature plugin for concurrent HTTP remote requests

License: GNU General Public License v2.0

PHP 100.00%

wp-concurrent-remote-requests's Introduction

Concurrent Remote Requests Feature Plugin

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

Coding Standards Testing Suite

A WordPress Feature plugin for concurrent HTTP remote requests in WordPress. Adds namespaced helper functions to make concurrent remote requests. Being tracked in alleyinteractive#2 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.

wp-concurrent-remote-requests's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar srtfisher avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.