Added hyperf/http2-client.

This commit is contained in:
李铭昕 2023-03-17 13:41:46 +08:00
parent 2216226503
commit 67cf76b334
7 changed files with 131 additions and 1 deletions

View File

@ -42,7 +42,7 @@
"google/protobuf": "^3.6.1",
"grpc/grpc": "^1.15",
"guzzlehttp/guzzle": "^6.3|^7.0",
"hyperf/engine": "^1.3|^2.0",
"hyperf/engine": "^2.6",
"hyperf/token-bucket": "^2.0",
"influxdb/influxdb-php": "^1.15.0",
"ircmaxell/random-lib": "^1.2",
@ -131,6 +131,7 @@
"hyperf/guzzle": "*",
"hyperf/http-message": "*",
"hyperf/http-server": "*",
"hyperf/http2-client": "*",
"hyperf/ide-helper": "*",
"hyperf/json-rpc": "*",
"hyperf/kafka": "*",
@ -233,6 +234,7 @@
"Hyperf\\GrpcServer\\": "src/grpc-server/src/",
"Hyperf\\Grpc\\": "src/grpc/src/",
"Hyperf\\Guzzle\\": "src/guzzle/src/",
"Hyperf\\Http2Client\\": "src/http2-client/src/",
"Hyperf\\HttpMessage\\": "src/http-message/src/",
"Hyperf\\HttpServer\\": "src/http-server/src/",
"Hyperf\\JsonRpc\\": "src/json-rpc/src/",
@ -326,6 +328,7 @@
"HyperfTest\\GrpcClient\\": "src/grpc-client/tests/",
"HyperfTest\\GrpcServer\\": "src/grpc-server/tests/",
"HyperfTest\\Guzzle\\": "src/guzzle/tests/",
"HyperfTest\\Http2Client\\": "src/http2-client/tests/",
"HyperfTest\\HttpMessage\\": "src/http-message/tests/",
"HyperfTest\\HttpServer\\": "src/http-server/tests/",
"HyperfTest\\JsonRpc\\": "src/json-rpc/tests/",
@ -422,6 +425,7 @@
"Hyperf\\GrpcClient\\ConfigProvider",
"Hyperf\\GrpcServer\\ConfigProvider",
"Hyperf\\Guzzle\\ConfigProvider",
"Hyperf\\Http2Client\\ConfigProvider",
"Hyperf\\HttpMessage\\ConfigProvider",
"Hyperf\\HttpServer\\ConfigProvider",
"Hyperf\\JsonRpc\\ConfigProvider",

2
src/http2-client/.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
/tests export-ignore
/.github export-ignore

View File

@ -0,0 +1,13 @@
name: Close Pull Request
on:
pull_request_target:
types: [opened]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: "Hi, this is a READ-ONLY repository, please submit your PR on the https://github.com/hyperf/hyperf repository.<br><br> This Pull Request will close automatically.<br><br> Thanks! "

View File

@ -0,0 +1,25 @@
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Release
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

21
src/http2-client/LICENSE Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Hyperf
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -0,0 +1,45 @@
{
"name": "hyperf/http2-client",
"description": "A HTTP2 client library for Hyperf.",
"license": "MIT",
"keywords": [
"php",
"swoole",
"hyperf",
"http2-client"
],
"homepage": "https://hyperf.io",
"support": {
"docs": "https://hyperf.wiki",
"issues": "https://github.com/hyperf/hyperf/issues",
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"require": {
"php": ">=8.0",
"hyperf/contract": "~3.0.0",
"hyperf/coordinator": "~3.0.0",
"hyperf/engine": "^2.6"
},
"autoload": {
"psr-4": {
"Hyperf\\Http2Client\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"HyperfTest\\Http2Client\\": "tests/"
}
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "3.0-dev"
},
"hyperf": {
"config": "Hyperf\\Http2Client\\ConfigProvider"
}
}
}

View File

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact group@hyperf.io
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\Http2Client;
class ConfigProvider
{
public function __invoke(): array
{
return [];
}
}