Skip to content

Commit dd7f616

Browse files
committed
Merge branch 'release/1.0.0'
2 parents 129a018 + bfcdd1b commit dd7f616

File tree

122 files changed

+185270
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+185270
-0
lines changed

.docker/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM splitbrain/phpfarm:jessie
2+
3+
RUN apt-get update && apt-get install -y git zip
4+
5+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
6+
COPY . /var/www/
7+
8+
WORKDIR /var/www/

.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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
vendor
2+
composer.lock
3+
phpunit.xml
4+
.phpunit.result.cache
5+
coverage

.php_cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->exclude('vendor')
5+
->in(__DIR__);
6+
7+
return PhpCsFixer\Config::create()
8+
->setUsingCache(false)
9+
->setRules(array(
10+
'@PSR2' => true,
11+
'binary_operator_spaces' => true,
12+
'no_whitespace_in_blank_line' => true,
13+
'ternary_operator_spaces' => true,
14+
'cast_spaces' => true,
15+
'trailing_comma_in_multiline_array' => true
16+
))
17+
->setFinder($finder);

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
language: php
2+
3+
jobs:
4+
include:
5+
- name: 'Tests under PHP 7.4'
6+
php: '7.4'
7+
dist: bionic
8+
- name: 'Tests under PHP 8.0'
9+
php: '8.0'
10+
dist: bionic
11+
- name: 'Tests under PHP nightly'
12+
php: 'nightly'
13+
dist: bionic
14+
15+
fast_finish: true
16+
allow_failures:
17+
- php: 'nightly'
18+
19+
cache:
20+
directories:
21+
- $HOME/.composer/cache
22+
23+
install:
24+
- composer install
25+
26+
script:
27+
- php -dmemory_limit=-1 -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
28+
29+
after_script:
30+
- wget https://scrutinizer-ci.com/ocular.phar
31+
- php -dmemory_limit=-1 ocular.phar code-coverage:upload --format=php-clover coverage.clover
32+
33+
after_success:
34+
- bash <(curl -s https://codecov.io/bash)

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# CHANGELOG
2+
3+
## 1.0.0 - 2021/01/31
4+
- Initial release after exporting source code from the [PackageGenerator](https://github.com/WsdlToPhp/PackageGenerator) project

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2021 Mikaël DELSOL
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is furnished
8+
to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# WSDL Handler
2+
3+
> WSDL Handler provides handful methods to manipulate/browse a WSDL and its schemas.
4+
5+
[![License](https://poser.pugx.org/wsdltophp/wsdlhandler/license)](https://packagist.org/packages/wsdltophp/wsdlhandler)
6+
[![Latest Stable Version](https://poser.pugx.org/wsdltophp/wsdlhandler/version.png)](https://packagist.org/packages/wsdltophp/wsdlhandler)
7+
[![Build Status](https://travis-ci.com/WsdlToPhp/WsdlHandler.svg)](https://travis-ci.com/github/WsdlToPhp/WsdlHandler)
8+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/WsdlToPhp/WsdlHandler/badges/quality-score.png)](https://scrutinizer-ci.com/g/WsdlToPhp/WsdlHandler/)
9+
[![Code Coverage](https://scrutinizer-ci.com/g/WsdlToPhp/WsdlHandler/badges/coverage.png)](https://scrutinizer-ci.com/g/WsdlToPhp/WsdlHandler/)
10+
[![Total Downloads](https://poser.pugx.org/wsdltophp/wsdlhandler/downloads)](https://packagist.org/packages/wsdltophp/wsdlhandler)
11+
[![StyleCI](https://styleci.io/repos/87977980/shield)](https://styleci.io/repos/87977980)
12+
[![SymfonyInsight](https://insight.symfony.com/projects/3dd23426-0808-4715-9a11-e51dc84cb0b4/mini.svg)](https://insight.symfony.com/projects/3dd23426-0808-4715-9a11-e51dc84cb0b4)
13+
14+
WsdlHandler uses the [decorator design pattern](https://en.wikipedia.org/wiki/Decorator_pattern) upon [DomHandler](https://github.com/WsdlToPhp/DomHandler).
15+
16+
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.
17+
18+
## Testing using [Docker](https://www.docker.com/)
19+
Thanks to the [Docker image](https://hub.docker.com/r/splitbrain/phpfarm) of [phpfarm](https://github.com/fpoirotte/phpfarm), tests can be run locally under *any* PHP version using the cli:
20+
- php-7.4
21+
22+
First of all, you need to create your container which you can do using [docker-compose](https://docs.docker.com/compose/) by running the below command line from the root directory of the project:
23+
```bash
24+
$ docker-compose up -d --build
25+
```
26+
27+
You then have a container named `wsdl_handler` in which you can run `composer` commands and `php cli` commands such as:
28+
```bash
29+
# install deps in container (using update ensure it does use the composer.lock file if there is any)
30+
$ docker exec -it wsdl_handler php-7.4 /usr/bin/composer update
31+
# run tests in container
32+
$ docker exec -it wsdl_handler php-7.4 -dmemory_limit=-1 vendor/bin/phpunit
33+
```
34+
35+
## Contributing
36+
37+
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
38+
39+
## FAQ
40+
41+
Feel free to [create an issue](https://github.com/WsdlToPhp/WsdlHandler/issues/new).
42+
43+
## License
44+
45+
The MIT License (MIT). Please see [License File](LICENSE) for more information.
46+

composer.json

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "wsdltophp/wsdlhandler",
3+
"type": "library",
4+
"description": "Decorative design pattern to ease WSDL handling",
5+
"keywords": [
6+
"xml",
7+
"dom",
8+
"xpath",
9+
"php",
10+
"wsdl",
11+
"xsd"
12+
],
13+
"homepage": "https://github.com/WsdlToPhp/WsdlHandler",
14+
"license": "MIT",
15+
"authors": [
16+
{
17+
"name": "Mikaël DELSOL",
18+
"email": "[email protected]",
19+
"homepage": "https://www.wsdltophp.com",
20+
"role": "Owner"
21+
}
22+
],
23+
"require": {
24+
"php": ">=7.4",
25+
"ext-dom": "*",
26+
"wsdltophp/domhandler": "~2.0"
27+
},
28+
"require-dev": {
29+
"friendsofphp/php-cs-fixer": "~2.0",
30+
"phpunit/phpunit": "^9"
31+
},
32+
"config": {
33+
"sort-packages": true
34+
},
35+
"autoload": {
36+
"psr-4": {
37+
"WsdlToPhp\\WsdlHandler\\": "src"
38+
}
39+
},
40+
"autoload-dev": {
41+
"psr-4": {
42+
"WsdlToPhp\\WsdlHandler\\Tests\\": "tests"
43+
}
44+
},
45+
"scripts": {
46+
"test": "vendor/bin/phpunit",
47+
"lint": "vendor/bin/php-cs-fixer fix --ansi --diff --verbose"
48+
},
49+
"support": {
50+
"email": "[email protected]"
51+
}
52+
}

0 commit comments

Comments
 (0)