Skip to content

Commit 9a816e1

Browse files
committed
update workflow - default branch is now "2.x" (not "main")
1 parent e536fee commit 9a816e1

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

.github/workflows/phpunit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Unit test
4040
run: composer run test
4141
- name: Publish code coverage
42-
if: ${{ matrix.php-version == '8.3' && github.ref_name == 'main' }}
42+
if: ${{ matrix.php-version == '8.3' && github.ref_name == '2.x' }}
4343
uses: paambaati/codeclimate-action@v5.0.0
4444
continue-on-error: true
4545
env:
@@ -49,6 +49,6 @@ jobs:
4949
coverageCommand: vendor/bin/phpunit --coverage-clover coverage/clover.xml
5050
coverageLocations: coverage/clover.xml:clover
5151
- name: Coverage summary
52-
if: ${{ matrix.php-version == '8.3' && github.ref_name == 'main' }}
52+
if: ${{ matrix.php-version == '8.3' && github.ref_name == '2.x' }}
5353
continue-on-error: true
5454
run: php -f vendor/bdk/devutil/src/coverageChecker.php -- coverage/clover.xml

README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,6 @@ PSR-7 (HttpMessage) & PSR-17 (HttpFactory) Implementations
1212
* `UploadedFile::getClientFullPath()`. PHP 8.1 added a new file upload property (not included in PSR-7)
1313
* `ServerRequestExtended` interface and implementation - Extends standard server request with helpful methods
1414

15-
### Installation
16-
17-
`composer require bdk/http-message`
18-
19-
### Documentation
20-
21-
http://bradkent.com/php/httpmessage
22-
23-
### 3 maintained versions:
24-
25-
| Version | http-message | http-factory | php | note |
26-
|--|--|--|--|--|
27-
|3.x | ^1.1 \| ^2.0 | ^1.0 | >= 8.0 | `static` returns
28-
|2.x | ^1.1 \| ^2.0 | ^1.0 | >= 7.2 | `self` returns
29-
|1.x | ~1.0.1 | -- | >= 5.4 |   |
30-
31-
32-
3315
### Utilities
3416
* ContentType: common mime-type constants
3517
* HttpFoundationBridge: create ServerRequest and Response from HttpFoundation request and response
@@ -40,14 +22,30 @@ http://bradkent.com/php/httpmessage
4022
* ServerRequest:
4123
* `fromGlobals(): ServerRequestInterface`
4224
* Stream
43-
* `getContent(StreamInterface): string`
25+
* `getContent(StreamInterface): string` - Get stream contents without affecting pointer
4426
* Uri:
4527
* `fromGlobals(): UriInterface`
4628
* `fromParsed(array): UriInterface`
4729
* `isCrossOrigin(UriInterface $uri1, UriInterface $uri2): bool`
4830
* `parseUrl(string|UriInterface): array` - like php's `parse_url` but with bug fixes backported
4931
* `resolve(UriInterface $base, UriInterface $rel): UriInterface` - Converts the relative URI into a new URI that is resolved against the base URI.
5032

33+
### Installation
34+
35+
`composer require bdk/http-message`
36+
37+
### Documentation
38+
39+
http://bradkent.com/php/httpmessage
40+
41+
### 3 maintained versions:
42+
43+
| Version | http-message | http-factory | php | note |
44+
|--|--|--|--|--|
45+
|3.x | ^1.1 \| ^2.0 | ^1.0 | >= 8.0 | `static` returns
46+
|2.x | ^1.1 \| ^2.0 | ^1.0 | >= 7.2 | `self` returns
47+
|1.x | ~1.0.1 | -- | >= 5.4 |   |
48+
5149
## Tests / Quality
5250

5351
![Supported PHP versions](https://img.shields.io/static/v1?label=PHP&message=5.4%20-%208.4&color=blue)

0 commit comments

Comments
 (0)