diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..9c09fb8 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: clue +custom: https://clue.engineering/support diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f376ed..dacbcfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## 1.5.0 (2020-06-19) + +* Feature / Fix: Support PHP 7.4 by skipping unneeded cleanup of exception trace args. + (#33 by @clue) + +* Clean up test suite and add `.gitattributes` to exclude dev files from exports. + Run tests on PHP 7.4, PHPUnit 9 and simplify test matrix. + Link to using SSH proxy (SSH tunnel) as an alternative. + (#27 by @clue and #31, #32 and #34 by @SimonFrings) + ## 1.4.0 (2018-10-30) * Feature: Improve error reporting for failed connection attempts and improve @@ -16,7 +26,7 @@ ```php $promise = $proxy->connect('tcp://example.com:80'); - $promise->then(function (ConnectionInterface $conn) use ($loop) { + $promise->then(function (ConnectionInterface $connection) { // … }, function (Exception $e) { echo $e->getMessage(); @@ -29,7 +39,7 @@ ```php // new: now supports custom HTTP request headers $proxy = new ProxyConnector('127.0.0.1:8080', $connector, array( - 'Proxy-Authentication' => 'Bearer abc123', + 'Proxy-Authorization' => 'Bearer abc123', 'User-Agent' => 'ReactPHP' )); ``` diff --git a/README.md b/README.md index c1c736b..c990f5e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # clue/reactphp-http-proxy [![Build Status](https://travis-ci.org/clue/reactphp-http-proxy.svg?branch=master)](https://travis-ci.org/clue/reactphp-http-proxy) -Async HTTP proxy connector, use any TCP/IP-based protocol through an HTTP +Async HTTP proxy connector, tunnel any TCP/IP-based protocol through an HTTP CONNECT proxy server, built on top of [ReactPHP](https://reactphp.org). HTTP CONNECT proxy servers (also commonly known as "HTTPS proxy" or "SSL proxy") @@ -34,6 +34,7 @@ existing higher-level protocol implementation. **Table of contents** +* [Support us](#support-us) * [Quickstart example](#quickstart-example) * [Usage](#usage) * [ProxyConnector](#proxyconnector) @@ -51,6 +52,16 @@ existing higher-level protocol implementation. * [License](#license) * [More](#more) +## Support us + +We invest a lot of time developing, maintaining and updating our awesome +open-source projects. You can help us sustain this high-quality of our work by +[becoming a sponsor on GitHub](https://github.com/sponsors/clue). Sponsors get +numerous benefits in return, see our [sponsoring page](https://github.com/sponsors/clue) +for details. + +Let's take these projects to the next level together! 🚀 + ## Quickstart example The following example code demonstrates how this library can be used to send a @@ -319,7 +330,7 @@ you may simply pass an assoc array of additional request headers like this: ```php $proxy = new ProxyConnector('127.0.0.1:8080', $connector, array( - 'Proxy-Authorization' => 'Bearer abc123', + 'Proxy-Authorization' => 'Bearer abc123', 'User-Agent' => 'ReactPHP' )); ``` @@ -389,7 +400,7 @@ This project follows [SemVer](https://semver.org/). This will install the latest supported version: ```bash -$ composer require clue/http-proxy-react:^1.4 +$ composer require clue/http-proxy-react:^1.5 ``` See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. diff --git a/composer.json b/composer.json index 9630942..bfdf556 100644 --- a/composer.json +++ b/composer.json @@ -1,13 +1,13 @@ { "name": "clue/http-proxy-react", - "description": "Async HTTP proxy connector, use any TCP/IP-based protocol through an HTTP CONNECT proxy server, built on top of ReactPHP", + "description": "Async HTTP proxy connector, tunnel any TCP/IP-based protocol through an HTTP CONNECT proxy server, built on top of ReactPHP", "keywords": ["HTTP", "CONNECT", "proxy", "ReactPHP", "async"], "homepage": "https://github.com/clue/reactphp-http-proxy", "license": "MIT", "authors": [ { "name": "Christian Lück", - "email": "christian@lueck.tv" + "email": "christian@clue.engineering" } ], "autoload": {