Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 267db6a

Browse files
committed
Merging develop to master in preparation for 1.1.0 release.
2 parents d60d429 + 40c4c01 commit 267db6a

27 files changed

+2107
-293
lines changed

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage_clover: clover.xml
2+
json_path: coveralls-upload.json

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/.coveralls.yml export-ignore
2+
/.gitattributes export-ignore
3+
/.gitignore export-ignore
4+
/.travis.yml export-ignore
5+
/composer.lock export-ignore
6+
/docs/ export-ignore
7+
/phpcs.xml export-ignore
8+
/phpunit.xml.dist export-ignore
9+
/test/ export-ignore

.gitignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
composer.lock
2-
vendor
3-
.buildpath
4-
.project
5-
.settings
1+
/clover.xml
2+
/coveralls-upload.json
3+
/phpunit.xml
4+
/vendor/

.travis.yml

Lines changed: 56 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,75 @@ sudo: false
22

33
language: php
44

5-
branches:
6-
except:
7-
- /^release-.*$/
8-
- /^ghgfk-.*$/
9-
105
cache:
116
directories:
127
- $HOME/.composer/cache
13-
14-
matrix:
15-
allow_failures:
16-
- php: hhvm
8+
9+
env:
10+
global:
11+
- COMPOSER_ARGS="--no-interaction"
12+
- COVERAGE_DEPS="php-coveralls/php-coveralls"
13+
1714
matrix:
18-
fast_finish: true
1915
include:
20-
- php: 5.3
21-
- php: 5.4
22-
- php: 5.5
16+
- php: 5.6
2317
env:
24-
- EXECUTE_CS_CHECK=true
18+
- DEPS=lowest
2519
- php: 5.6
20+
env:
21+
- DEPS=locked
22+
- LEGACY_DEPS="phpunit/phpunit"
23+
- php: 5.6
24+
env:
25+
- DEPS=latest
2626
- php: 7
27-
- php: hhvm
28-
allow_failures:
29-
- php: hhvm
27+
env:
28+
- DEPS=lowest
29+
- php: 7
30+
env:
31+
- DEPS=locked
32+
- LEGACY_DEPS="phpunit/phpunit"
33+
- php: 7
34+
env:
35+
- DEPS=latest
36+
- php: 7.1
37+
env:
38+
- DEPS=lowest
39+
- php: 7.1
40+
env:
41+
- DEPS=locked
42+
- CS_CHECK=true
43+
- TEST_COVERAGE=true
44+
- php: 7.1
45+
env:
46+
- DEPS=latest
47+
- php: 7.2
48+
env:
49+
- DEPS=lowest
50+
- php: 7.2
51+
env:
52+
- DEPS=locked
53+
- php: 7.2
54+
env:
55+
- DEPS=latest
3056

3157
before_install:
32-
- composer self-update
58+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
3359

3460
install:
35-
- travis_retry composer install --no-interaction --ignore-platform-reqs
61+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
62+
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
63+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
64+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
65+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
66+
- stty cols 120 && composer show
3667

3768
script:
38-
- ./vendor/bin/phpunit -c ./tests
39-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs --standard=PSR2 --ignore=tests/Bootstrap.php library tests ; fi
40-
69+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
70+
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
71+
72+
after_script:
73+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi
74+
4175
notifications:
42-
irc: "irc.freenode.org#zftalk.dev"
4376
email: false

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5-
## 1.0.3 - TBD
5+
## 1.1.0 - 2018-04-30
66

77
### Added
88

9+
- [#13](https://github.com/zendframework/ZendXml/pull/13) adds support for PHP 7.1 and 7.2.
10+
11+
### Changed
12+
913
- Nothing.
1014

1115
### Deprecated
@@ -14,7 +18,9 @@ All notable changes to this project will be documented in this file, in reverse
1418

1519
### Removed
1620

17-
- Nothing.
21+
- [#13](https://github.com/zendframework/ZendXml/pull/13) removes support for PHP 5.3, 5.4, and 5.5.
22+
23+
- [#13](https://github.com/zendframework/ZendXml/pull/13) removes support for HHVM.
1824

1925
### Fixed
2026

LICENSE.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
1-
Copyright (c) 2014-2015, Zend Technologies USA, Inc.
1+
Copyright (c) 2014-2018, Zend Technologies USA, Inc.
22
All rights reserved.
33

4-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
56

6-
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7+
- Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
79

8-
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10+
- Redistributions in binary form must reproduce the above copyright notice, this
11+
list of conditions and the following disclaimer in the documentation and/or
12+
other materials provided with the distribution.
913

10-
- Neither the name of Zend Technologies USA, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
14+
- Neither the name of Zend Technologies USA, Inc. nor the names of its
15+
contributors may be used to endorse or promote products derived from this
16+
software without specific prior written permission.
1117

12-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
22+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
ZendXml
2-
=======
1+
# ZendXml
2+
3+
[![Build Status](https://secure.travis-ci.org/zendframework/ZendXml.svg?branch=master)](https://secure.travis-ci.org/zendframework/ZendXml)
4+
[![Coverage Status](https://coveralls.io/repos/github/zendframework/ZendXml/badge.svg?branch=master)](https://coveralls.io/github/zendframework/ZendXml?branch=master)
35

46
An utility component for XML usage and best practices in PHP
57

6-
Installation
7-
------------
8+
## Installation
89

910
You can install using:
1011

@@ -16,8 +17,7 @@ php composer.phar install
1617
Notice that this library doesn't have any external dependencies, the usage of composer is for autoloading and standard purpose.
1718

1819

19-
ZendXml\Security
20-
----------------
20+
## ZendXml\Security
2121

2222
This is a security component to prevent [XML eXternal Entity](https://www.owasp.org/index.php/XML_External_Entity_%28XXE%29_Processing) (XXE) and [XML Entity Expansion](http://projects.webappsec.org/w/page/13247002/XML%20Entity%20Expansion) (XEE) attacks on XML documents.
2323

@@ -46,5 +46,3 @@ $dom = new \DOMDocument('1.0');
4646
$dom = XmlSecurity::scan($xml, $dom);
4747
printf ("DOMDocument: %s\n", ($dom instanceof \DOMDocument) ? 'yes' : 'no');
4848
```
49-
50-

composer.json

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,54 @@
11
{
22
"name": "zendframework/zendxml",
33
"description": "Utility library for XML usage, best practices, and security in PHP",
4-
"type": "library",
54
"license": "BSD-3-Clause",
65
"keywords": [
7-
"zf2",
6+
"zf",
7+
"zendframework",
88
"xml",
99
"security"
1010
],
11-
"homepage": "http://packages.zendframework.com/",
11+
"support": {
12+
"issues": "https://github.com/zendframework/ZendXml/issues",
13+
"source": "https://github.com/zendframework/ZendXml",
14+
"rss": "https://github.com/zendframework/ZendXml/releases.atom",
15+
"chat": "https://zendframework-slack.herokuapp.com",
16+
"forum": "https://discourse.zendframework.com/c/questions/components"
17+
},
18+
"require": {
19+
"php": "^5.6 || ^7.0"
20+
},
21+
"require-dev": {
22+
"zendframework/zend-coding-standard": "~1.0.0",
23+
"phpunit/phpunit": "^5.7.27 || ^6.5.8 || ^7.1.4"
24+
},
1225
"autoload": {
13-
"psr-0": {
14-
"ZendXml\\": "library/"
26+
"psr-4": {
27+
"ZendXml\\": "src/"
1528
}
1629
},
1730
"autoload-dev": {
1831
"psr-4": {
19-
"ZendTest\\Xml\\": "tests/ZendXmlTest/"
32+
"ZendXmlTest\\": "test/"
2033
}
2134
},
22-
"repositories": [
23-
{
24-
"type": "composer",
25-
"url": "http://packages.zendframework.com/"
26-
}
27-
],
28-
"require": {
29-
"php": "^5.3.3 || ^7.0"
35+
"config": {
36+
"sort-packages": true
3037
},
3138
"extra": {
3239
"branch-alias": {
33-
"dev-master": "1.0-dev"
40+
"dev-master": "1.1.x-dev",
41+
"dev-develop": "1.2.x-dev"
3442
}
3543
},
36-
"require-dev": {
37-
"phpunit/phpunit": "^3.7 || ^4.0",
38-
"squizlabs/php_codesniffer": "^1.5"
44+
"scripts": {
45+
"check": [
46+
"@cs-check",
47+
"@test"
48+
],
49+
"cs-check": "phpcs",
50+
"cs-fix": "phpcbf",
51+
"test": "phpunit --colors=always",
52+
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml"
3953
}
4054
}

0 commit comments

Comments
 (0)