Skip to content

Upgrade 2.0.0 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jun 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Tests

on:
push:
pull_request:

jobs:
build:
name: Tests PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']

steps:
- uses: actions/checkout@v3

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: |
mkdir ./coverage
php -v > ./coverage/version-php.txt
./vendor/bin/phpunit --version > ./coverage/version-phpunit.txt
./vendor/bin/phpunit --configuration ./phpunit-${{ matrix.php-version }}.xml --coverage-clover ./coverage/coverage.clover --coverage-html ./coverage/html/

- name: Save coverage results
uses: actions/upload-artifact@v3
with:
name: coverage-php${{ matrix.php-version }}
path: ./coverage/
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
composer.lock
vendor
vendor
/coverage/
7 changes: 0 additions & 7 deletions .scrutinizer.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

22 changes: 17 additions & 5 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
The MIT License (MIT)
MIT License

Copyright 2018 Refactor Studio - [www.refactorstudio.com](https://www.refactorstudio.com)
Copyright (c) 2022 rboonzaijer

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:
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 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.
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.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
<p align="center">Convert an array to XML with PHP</p>

<p align="center">
<a href="https://travis-ci.org/refactorstudio/php-array-to-xml"><img src="https://img.shields.io/travis/refactorstudio/php-array-to-xml/master.svg?style=flat-square" alt="Build Status"></a>
<a href="https://scrutinizer-ci.com/g/refactorstudio/php-array-to-xml/"><img src="https://img.shields.io/scrutinizer/coverage/g/refactorstudio/php-array-to-xml.svg?style=flat-square" alt="Coverage Status"></a>
<a href="https://scrutinizer-ci.com/g/refactorstudio/php-array-to-xml/"><img src="https://img.shields.io/scrutinizer/g/refactorstudio/php-array-to-xml.svg?style=flat-square" alt="Code Quality"></a>
<a href="https://scrutinizer-ci.com/g/rboonzaijer/php-array-to-xml/"><img src="https://img.shields.io/scrutinizer/coverage/g/rboonzaijer/php-array-to-xml.svg?style=flat-square" alt="Coverage Status"></a>
<a href="https://scrutinizer-ci.com/g/rboonzaijer/php-array-to-xml/"><img src="https://img.shields.io/scrutinizer/g/rboonzaijer/php-array-to-xml.svg?style=flat-square" alt="Code Quality"></a>
<a href="LICENSE.md"><img src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a>
</p>

Expand All @@ -14,7 +13,7 @@
## Install

```
composer require refactorstudio/php-array-to-xml
composer require rboonzaijer/php-array-to-xml
```


Expand All @@ -23,7 +22,7 @@ composer require refactorstudio/php-array-to-xml

Basic example:
```php
use RefactorStudio\PhpArrayToXml\PhpArrayToXml;
use RBoonzaijer\PhpArrayToXml\PhpArrayToXml;

$converter = new PhpArrayToXml();

Expand Down
19 changes: 9 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
{
"name": "refactorstudio/php-array-to-xml",
"name": "rboonzaijer/php-array-to-xml",
"description": "Convert an array to XML with PHP",
"keywords": [
"php-array-to-xml",
"refactorstudio",
"array-to-xml",
"array-to-xml-php",
"xml",
"parser",
"array",
"convert"
],
"homepage": "https://github.com/refactorstudio/php-array-to-xml",
"homepage": "https://github.com/rboonzaijer/php-array-to-xml",
"license": "MIT",
"authors": [
{
"name": "Roel Boonzaijer",
"email": "[email protected]",
"homepage": "https://www.refactorstudio.com",
"name": "R Boonzaijer",
"email": "[email protected]",
"homepage": "https://www.247web.nl",
"role": "Developer"
}
],
"require": {
"php" : "^7.0"
"php" : "^8.0|^7.0"
},
"require-dev": {
"phpunit/phpunit" : "^6.3",
"phpunit/phpunit" : "^9.5|^8.5|^7.5|^6.5",
"mockery/mockery": "^1.0"
},
"autoload": {
"psr-4": {
"RefactorStudio\\PhpArrayToXml\\": "src"
"RBoonzaijer\\PhpArrayToXml\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"RefactorStudio\\PhpArrayToXml\\Test\\": "tests"
"RBoonzaijer\\PhpArrayToXml\\Test\\": "tests"
}
}
}
30 changes: 30 additions & 0 deletions phpunit-7.0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- PHPUnit 6 PHP 7.0 - PHP 7.2 (https://phpunit.de/supported-versions.html) -->
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">

<filter>
<whitelist>
<directory>./src</directory>
<exclude>
<directory>./vendor</directory>
<directory>./tests</directory>
</exclude>
</whitelist>
</filter>

<testsuites>
<testsuite name="PhpArrayToXml Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>

</phpunit>
30 changes: 30 additions & 0 deletions phpunit-7.1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- PHPUnit 7 PHP 7.1 - PHP 7.3 (https://phpunit.de/supported-versions.html) -->
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">

<filter>
<whitelist>
<directory>./src</directory>
<exclude>
<directory>./vendor</directory>
<directory>./tests</directory>
</exclude>
</whitelist>
</filter>

<testsuites>
<testsuite name="PhpArrayToXml Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>

</phpunit>
30 changes: 30 additions & 0 deletions phpunit-7.2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- PHPUnit 8 >= PHP 7.2 (https://phpunit.de/supported-versions.html) -->
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">

<filter>
<whitelist>
<directory>./src</directory>
<exclude>
<directory>./vendor</directory>
<directory>./tests</directory>
</exclude>
</whitelist>
</filter>

<testsuites>
<testsuite name="PhpArrayToXml Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>

</phpunit>
30 changes: 30 additions & 0 deletions phpunit-7.3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- PHPUnit 9 >= PHP 7.3 (https://phpunit.de/supported-versions.html) -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
cacheResult ="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory>./src</directory>
</include>
<exclude>
<directory>./vendor</directory>
<directory>./tests</directory>
</exclude>
</coverage>
<testsuites>
<testsuite name="PhpArrayToXml Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
30 changes: 30 additions & 0 deletions phpunit-7.4.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- PHPUnit 9 >= PHP 7.3 (https://phpunit.de/supported-versions.html) -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
cacheResult ="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory>./src</directory>
</include>
<exclude>
<directory>./vendor</directory>
<directory>./tests</directory>
</exclude>
</coverage>
<testsuites>
<testsuite name="PhpArrayToXml Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
30 changes: 30 additions & 0 deletions phpunit-8.0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- PHPUnit 9 >= PHP 7.3 (https://phpunit.de/supported-versions.html) -->
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
cacheResult ="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory>./src</directory>
</include>
<exclude>
<directory>./vendor</directory>
<directory>./tests</directory>
</exclude>
</coverage>
<testsuites>
<testsuite name="PhpArrayToXml Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
Loading