Skip to content

Commit ce19bd4

Browse files
committed
Merge branch 'release/1.0.1'
2 parents ce0307c + 5d33df8 commit ce19bd4

27 files changed

+209
-41
lines changed

.docker/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM php:7.2-apache AS dom_handler_php
2+
3+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
4+
COPY . /var/www/html
5+
6+
RUN apt-get update \
7+
&& apt-get install -y zip git
8+
9+
ENV COMPOSER_ALLOW_SUPERUSER=1
10+
11+
WORKDIR /var/www/html
12+
13+
RUN composer self-update \
14+
&& composer validate \
15+
&& composer update --prefer-dist --no-scripts --no-progress --no-suggest

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_size = 4
6+
indent_style = space
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.github/CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

.github/CONTRIBUTING.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Contributing
2+
3+
Contributions are **welcome** and will be fully **credited**.
4+
5+
We accept contributions via pull requests on [Github].
6+
Please make all pull requests to the `develop` branch, not the `master` branch.
7+
8+
## Before posting an issue
9+
10+
- If a command is failing, post the full output you get when running the command, with the `--verbose` argument
11+
12+
## Pull Requests
13+
14+
- **Create an issue** - Explain as detailed as possible the issue you encountered so we can understand the context of your pull request
15+
- **[Symfony Coding Standard]** - The easiest way to apply the conventions is to run `composer lint`
16+
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
17+
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
18+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
19+
- **Create feature branches** - Don't ask us to pull from your master branch.
20+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
21+
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.
22+
23+
## Running Tests
24+
25+
``` bash
26+
$ composer test
27+
```
28+
29+
**Happy coding**!
30+
31+
[Github]: https://github.com/wsdltophp/domhandler
32+
[Symfony Coding Standard]: http://symfony.com/doc/current/contributing/code/standards.html

.gitignore

100755100644
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
.idea
21
vendor/
32
composer.lock
4-
composer.phar
53
phpunit.xml
6-
wsdltophp.yml
7-
bin/
8-
tests/resources/generated
4+
.idea

.travis.yml

100755100644
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@ language: php
22

33
sudo: false
44

5+
matrix:
6+
include:
7+
- php: 5.3
8+
dist: precise
9+
510
php:
6-
- 5.3
711
- 5.4
812
- 5.5
913
- 5.6
1014
- 7.0
1115
- 7.1
16+
- 7.2
1217

13-
before_install:
14-
- composer self-update
18+
cache:
19+
directories:
20+
- $HOME/.composer/cache
1521

1622
install:
1723
- composer install

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# CHANGELOG
22

3+
## 1.0.1
4+
- Initialize Docker settings
5+
- pull request #1 - Update namespace in test classes to match the actual location
6+
- Normalize composer.json
7+
- Add contributing and code of conduct files
8+
- Configure Travis CI for PHP 5.3, PHP 7.2 and cache
9+
- Add editorconfig file
10+
- Update gitignore file
11+
- Update readme and licence files
12+
313
## 1.0.0
414
- Initial release after exporting source code from the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) project

LICENSE

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2012-2017 Mikaël DELSOL
1+
Copyright (c) 2012-2018 Mikaël DELSOL
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

100755100644
Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,39 @@
1-
# WsdlToPhp Package Generator
1+
# DOM Handler
2+
3+
> DOM Handler provides handful methods to manipulate/browse a DOM Document.
4+
25
[![License](https://poser.pugx.org/wsdltophp/domhandler/license)](https://packagist.org/packages/wsdltophp/domhandler)
36
[![Latest Stable Version](https://poser.pugx.org/wsdltophp/domhandler/version.png)](https://packagist.org/packages/wsdltophp/domhandler)
47
[![Build Status](https://travis-ci.org/WsdlToPhp/DomHandler.svg)](https://travis-ci.org/WsdlToPhp/DomHandler)
5-
[![PHP 7 ready](http://php7ready.timesplinter.ch/WsdlToPhp/DomHandler/badge.svg)](https://travis-ci.org/WsdlToPhp/DomHandler)
6-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/?branch=develop)
7-
[![Code Coverage](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/?branch=develop)
8+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/badges/quality-score.png)](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/)
9+
[![Code Coverage](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/badges/coverage.png)](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/)
810
[![StyleCI](https://styleci.io/repos/87977980/shield)](https://styleci.io/repos/87977980)
11+
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/6bac01d7-5243-4682-9264-8166407c8a30/mini.png)](https://insight.sensiolabs.com/projects/6bac01d7-5243-4682-9264-8166407c8a30)
912

1013
DomHandler uses the [decorator design pattern](https://en.wikipedia.org/wiki/Decorator_pattern) in order to ease DOM handling.
1114

12-
The source code has been originally created into the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) project but it felt that it had the possibility to live by itself and to evolve independtly from the PackageGenerator project if necessary.
15+
The source code has been originally created into the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) project but it felt that it had the possibility to live by itself and to evolve independtly from the PackageGenerator project if necessary.
16+
17+
## Testing
18+
19+
```bash
20+
# composer test
21+
```
22+
23+
## Contributing
24+
25+
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
26+
27+
## Credits
28+
29+
Developers who helped on this project are listed in the [composer.json](composer.json#L8) file as `Contributor` and are:
30+
- [phordijk](https://github.com/phordijk)
31+
32+
## FAQ
33+
34+
Feel free to [create an issue](https://github.com/WsdlToPhp/DomHandler/issues/new).
35+
36+
## License
37+
38+
The MIT License (MIT). Please see [License File](LICENSE) for more information.
39+

composer.json

100755100644
Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,52 @@
11
{
22
"name": "wsdltophp/domhandler",
3-
"description": "Decorative design pattern to ease DOM handling",
43
"type": "library",
5-
"keywords" : ["xml","dom","xpath","php"],
6-
"homepage" : "https://github.com/WsdlToPhp/DomHandler",
7-
"license" : "MIT",
8-
"authors" : [
4+
"description": "Decorative design pattern to ease DOM handling",
5+
"keywords": [
6+
"xml",
7+
"dom",
8+
"xpath",
9+
"php"
10+
],
11+
"homepage": "https://github.com/WsdlToPhp/DomHandler",
12+
"license": "MIT",
13+
"authors": [
914
{
1015
"name": "Mikaël DELSOL",
1116
"email": "[email protected]",
1217
"homepage": "https://www.wsdltophp.com",
1318
"role": "Owner"
19+
},
20+
{
21+
"name": "phordijk",
22+
"role": "Contributor"
1423
}
1524
],
16-
"support" : {
17-
"email" : "[email protected]"
18-
},
1925
"require": {
20-
"php" : ">=5.3.3"
26+
"php": ">=5.3.3"
2127
},
2228
"require-dev": {
23-
"phpunit/phpunit": "~4.8",
24-
"friendsofphp/php-cs-fixer": "~2.0"
29+
"friendsofphp/php-cs-fixer": "~2.0",
30+
"phpunit/phpunit": "^4.8 || ^6.0"
31+
},
32+
"config": {
33+
"sort-packages": true
2534
},
2635
"autoload": {
2736
"psr-4": {
28-
"WsdlToPhp\\DomHandler\\": "src",
37+
"WsdlToPhp\\DomHandler\\": "src"
38+
}
39+
},
40+
"autoload-dev": {
41+
"psr-4": {
2942
"WsdlToPhp\\DomHandler\\Tests\\": "tests"
3043
}
44+
},
45+
"scripts": {
46+
"lint": "vendor/bin/php-cs-fixer fix",
47+
"test": "vendor/bin/phpunit"
48+
},
49+
"support": {
50+
"email": "[email protected]"
3151
}
3252
}

0 commit comments

Comments
 (0)