From a2ed64fedd4cb526aeb795b8c2316677f6911cb1 Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Tue, 26 Jul 2022 17:21:31 -0400 Subject: [PATCH 1/4] Importing the feature plugin --- README.md | 6 +- composer.json | 9 +- phpcs.xml.dist | 5 + src/class-wp-http.php | 571 +++++++++++++++++++++++++++++++++++++- src/helpers.php | 112 ++++++++ tests/class-test-case.php | 2 +- 6 files changed, 697 insertions(+), 8 deletions(-) create mode 100644 src/helpers.php diff --git a/README.md b/README.md index c0062ed..10598a8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# wp-concurrent-remote-requests +# Concurrent Remote Requests Feature Plugin Stable tag: 0.1.0 @@ -14,11 +14,11 @@ Tags: alleyinteractive, wp-concurrent-remote-requests Contributors: alleyinteractive, srtfisher - [![Coding Standards](https://github.com/alleyinteractive/wp-concurrent-remote-requests/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/alleyinteractive/wp-concurrent-remote-requests/actions/workflows/coding-standards.yml) [![Testing Suite](https://github.com/alleyinteractive/wp-concurrent-remote-requests/actions/workflows/unit-test.yml/badge.svg)](https://github.com/alleyinteractive/wp-concurrent-remote-requests/actions/workflows/unit-test.yml) -Feature plugin for concurrent HTTP remote requests. +A WordPress Feature plugin for concurrent HTTP remote requests. Adds namespaced +helper functions to make concurrent remote requests. ## Installation diff --git a/composer.json b/composer.json index 0185d19..6289e48 100644 --- a/composer.json +++ b/composer.json @@ -33,13 +33,18 @@ }, "sort-packages": true }, + "autoload": { + "files": [ + "src/helpers.php" + ] + }, "extra": { "wordpress-autoloader": { "autoload": { - "Alley\\WP\\Concurrent_Remote_Requests\\Wp_Concurrent_Remote_Requests\\": "src" + "Alley\\WP\\Concurrent_Remote_Requests\\": "src" }, "autoload-dev": { - "Alley\\WP\\Concurrent_Remote_Requests\\Wp_Concurrent_Remote_Requests\\Tests\\": "tests" + "Alley\\WP\\Concurrent_Remote_Requests\\Tests\\": "tests" } } }, diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 50d0fea..197702e 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -4,6 +4,11 @@ + + + + +