Skip to content

Commit b89551e

Browse files
authored
Release 2.0.0 (#3)
Release 2.0.0: PHP ^8.2, portphp ^2.0, GitHub Actions
2 parents cb07e68 + 4bebfbb commit b89551e

11 files changed

Lines changed: 99 additions & 86 deletions

File tree

‎.gitattributes‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@ spec/ export-ignore
22
.editorconfig export-ignore
33
.gitattributes export-ignore
44
.gitignore export-ignore
5-
.scrutinizer.yml export-ignore
6-
.travis.yml export-ignore
75
CONTRIBUTING.md export-ignore
8-
phpspec.yml.ci export-ignore
96
phpspec.yml.dist export-ignore

‎.github/dependabot.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
open-pull-requests-limit: 5
8+
- package-ecosystem: composer
9+
directory: /
10+
schedule:
11+
interval: monthly
12+
open-pull-requests-limit: 5
13+
versioning-strategy: widen

‎.github/workflows/checks.yml‎

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Checks
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Set up PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ matrix.php-versions }}
28+
coverage: none
29+
tools: composer:v2
30+
31+
- name: Validate Composer metadata
32+
run: |
33+
if [ -f composer.lock ]; then
34+
composer validate --strict --no-interaction
35+
else
36+
composer validate --strict --no-check-lock --no-interaction
37+
fi
38+
39+
- name: Get Composer cache directory
40+
id: composer-cache
41+
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
42+
43+
- name: Cache Composer packages
44+
uses: actions/cache@v4
45+
with:
46+
path: ${{ steps.composer-cache.outputs.dir }}
47+
key: ${{ runner.os }}-composer-${{ matrix.php-versions }}-${{ hashFiles('**/composer.json', '**/composer.lock') }}
48+
restore-keys: |
49+
${{ runner.os }}-composer-${{ matrix.php-versions }}-
50+
51+
- name: Install dependencies
52+
run: |
53+
if [ -f composer.lock ]; then
54+
composer install --prefer-dist --no-progress --no-interaction
55+
else
56+
composer update --prefer-dist --no-progress --no-interaction
57+
fi
58+
59+
- name: Run phpspec
60+
run: vendor/bin/phpspec run --config phpspec.yml.dist

‎.scrutinizer.yml‎

Lines changed: 0 additions & 7 deletions
This file was deleted.

‎.travis.yml‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎README.md‎

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,27 @@
1-
# portphp/xml-adapter
1+
# portphp/xml
22

33
[![Latest Version](https://img.shields.io/github/release/portphp/xml.svg?style=flat-square)](https://github.com/portphp/xml/releases)
4-
[![Build Status](https://travis-ci.org/portphp/xml.svg)](https://travis-ci.org/portphp/xml)
5-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/portphp/xml/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/portphp/xml/?branch=master)
6-
[![Code Coverage](https://scrutinizer-ci.com/g/portphp/xml/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/portphp/xml/?branch=master)
4+
[![CI](https://github.com/portphp/xml/actions/workflows/checks.yml/badge.svg?branch=master)](https://github.com/portphp/xml/actions/workflows/checks.yml)
5+
[![PHP Version](https://img.shields.io/packagist/php-v/portphp/xml.svg?style=flat-square)](https://packagist.org/packages/portphp/xml)
6+
7+
**Requirements:** PHP ^8.2 (tested on 8.2–8.5). Requires `portphp/portphp` ^2.0.
78

89
XML writer for Port.
910

1011
## Installation
1112

12-
Open a command console, enter your project directory and execute the
13-
following command to download the latest stable version of this package:
14-
1513
```bash
1614
$ composer require portphp/xml
1715
```
1816

19-
This command requires you to have Composer installed globally, as explained
20-
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
21-
of the Composer documentation.
22-
2317
## Documentation
2418

25-
Documentation is available at https://docs.portphp.org.
19+
Documentation is available at https://portphp.readthedocs.io.
2620

2721
## Issues and feature requests
2822

2923
Please report issues and request features at https://github.com/portphp/portphp/issues.
3024

31-
## Contributing
32-
33-
Contributions are very welcome. Please see [CONTRIBUTING.md](CONTRIBUTING.md) for
34-
details. Thanks to [everyone who has contributed](https://github.com/portphp/xml/graphs/contributors)
35-
already.
36-
37-
## Security
38-
39-
If you discover any security-related issues, please contact us at
40-
security@portphp.org.sec
41-
4225
## License
4326

4427
This package is licensed under the [MIT license](LICENSE).

‎UPGRADE-2.0.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Upgrade from 1.x to 2.0
2+
3+
- Minimum PHP is **8.2** (`^8.2`).
4+
- Requires `portphp/portphp` **^2.0**.
5+
- Writer methods use `: void` return types from the core interfaces.
6+
- CI is GitHub Actions (Travis/Scrutinizer removed).

‎composer.json‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,26 @@
1818
},
1919
{
2020
"name": "Community contributors",
21-
"homepage": "https://github.com/portphp/xml-adapter/graphs/contributors"
21+
"homepage": "https://github.com/portphp/xml/graphs/contributors"
2222
}
2323
],
2424
"support": {
2525
"issues": "https://github.com/portphp/portphp/issues",
26-
"source": "https://github.com/portphp/xml-adapter",
27-
"docs": "https://portphp.readthedocs.org"
26+
"source": "https://github.com/portphp/xml",
27+
"docs": "https://portphp.readthedocs.io"
2828
},
2929
"require": {
30-
"php": ">=5.4.0",
31-
"portphp/portphp": "^1.0.0",
32-
"ext-xmlwriter": "*"
30+
"php": "^8.2",
31+
"ext-xmlwriter": "*",
32+
"portphp/portphp": "^2.0"
3333
},
3434
"autoload": {
3535
"psr-4": {
3636
"Port\\Xml\\": "src/"
3737
}
3838
},
3939
"require-dev": {
40-
"phpspec/phpspec": "^2.2",
41-
"henrikbjorn/phpspec-code-coverage" : "^1.0"
40+
"phpspec/phpspec": "^8.0"
4241
},
4342
"extra": {
4443
"branch-alias": {

‎phpspec.yml.ci‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎phpspec.yml.dist‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
suites:
2-
xml_suite:
3-
namespace: Port\Xml
4-
psr4_prefix: Port\Xml
2+
default:
3+
namespace: Port\Xml
4+
psr4_prefix: Port\Xml
55
formatter.name: pretty

0 commit comments

Comments
 (0)