Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Updated for 3.4 of wsdl2phpgenerator #8

Open
wants to merge 12 commits into
base: 3.x
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ignore all test and documentation with "export-ignore".
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/.scrutinizer.yml export-ignore
/tests export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ wsdl2phpgenerator*.phar
vendor
tests/generated
TAG_MESSAGE
composer.lock
26 changes: 14 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
language: php
sudo: false

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1

env:
- SYMFONY_VERSION="~2.6"
# Test against previous minor releases of Symfony 2.x to ensure that we
# actually support the versions we specify in our requirements.
- SYMFONY_VERSION="2.6.*"
- PREFER_LOWEST="--prefer-lowest"
- PREFER_LOWEST=""

matrix:
include:
# PHP 5.3 builds have to be included manually as they require precise
- php: 5.3
dist: precise
env: PREFER_LOWEST="--prefer-lowest"
- php: 5.3
dist: precise
env: PREFER_LOWEST=""
before_install:
# Ensure that we always run with the latest version of composer.
# The default one supplied by Travis can get stale resulting in failed builds.
- composer selfupdate

before_script:
# Use --prefer-source to download dependencies via git and avoid GitHub API
# rate limits resulting in 502 HTTP responses, build errors and
# Composer\Downloader\TransportException.
# https://github.com/symfony/symfony/issues/4687
- composer install --dev --no-interaction --prefer-source
# Update the Symfony version to test against.
- composer require symfony/console:${SYMFONY_VERSION}
- composer update --no-interaction $PREFER_LOWEST

script:
- mkdir -p build/logs
Expand Down
102 changes: 7 additions & 95 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,102 +1,14 @@

2.4.0 / 2014-04-22
==================

* Add support for base types
* Updated PHPUnit to 4.0.x and other dependencies.
* Fix location of type nodes if no prefix is used.
* Fix description for CLI option to set default value of construction parameters to null.
* Fix kherge/Amend dependency

2.3.0 / 2014-02-23
==================

* Configuration is no longer a singleton
* Fix XML generation due to namespace backslash
* Fix missing namespace for PHP code generation
* Fix handling of operations named after PHP keywords.
* Fix element/type nameclash
* Fix operations initialization for services
* Use PHP VCR for mocking HTTP requests.
* Code and documentation cleanup

2.2.2 / 2014-01-08
==================

* Convert <anyXML> to string

2.2.1 / 2014-01-01
3.4.0
==================

* Fix imports with relative URLs.
* Fix generation of Enum constants which resolve to PHP primitives.
* Fix support for non-standard WSDL namespace aliases.
* Fix setting Symfony Console application version when releasing.
- updated all versions
- renamed -n shortcut to -ns since -n is already in use as --nointeraction in symfony console

2.2.0 / 2013-12-13
2.5.5
==================
- moved cli to own repo

* Support all minor releases of Symfony Console 2.*.

2.1.0 / 2013-12-09
< 2.5.5
==================

* Create a GitHub release and upload resulting phar file when releasing.
* Replace Coveralls with Scrutinizer for code coverage.
* Use box to build phar file of project.
* Add Phing build script to automate releases.
* Refactor to use Symfony Console component instead of custom CLI code.

2.0.3 / 2013-10-30
==================

* Remove leftover usage of gettext functions.

2.0.2 / 2013-10-29
==================

* Correct way to use composer autoloader.

2.0.1 / 2013-10-28
==================

* Remove conf dir as it's not used anymore.

2.0.0 / 2013-10-26
==================

* Extract interfaces to define public API.
* Improve PSR2 compatability. Remove side effects/requires from classes.
* Remove translation support.
* Allow project to be packaged by Composer.
* PHP 5.5 support. Move entire library to namespaces to avoid conflict with new Generator class. Thanks to chriskl.

Version 1.4.2
==================

* The generator's soap client doesn't use caching any more

Version 1.4.1
==================

* Fixed issue #20 with the generation of classes not working if simple type is not enum or pattern. Thanks to rc.poison
* Fixed issue #21 with the classmap listing the classnames in the wrong way. Thanks to rc.poison
* Fixed issue #22 with the php classname being used as comparison instead of the real classname. Thanks to rc.poison

Version 1.4
==================

* Improved the phpdoc generated
* Added support for enumerated values issue #13
* Added support for generating phpdoc from the documentation blocks in the wsdl issue #18

Version 1.3
==================

* Adding the -v verbose flag
* Adding the -p prefix and -q suffix flags
* Improving code coverage with tests
* Improving tests
* Fixing fatal error in 5.3 version issue #14
* Added the autoload parameter to class_exists calls issue #10

* cli was part of https://github.com/wsdl2phpgenerator/wsdl2phpgenerator
44 changes: 28 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,51 @@
# wsdl2phpgenerator-cli
# wsdl2phpgenerator-cli

*Work in progress!*
*Work in progress!*

[![Build Status](https://travis-ci.org/wsdl2phpgenerator/wsdl2phpgenerator-cli.svg?branch=3.x)](https://travis-ci.org/wsdl2phpgenerator/wsdl2phpgenerator-cli)
[![Code Coverage](https://scrutinizer-ci.com/g/wsdl2phpgenerator/wsdl2phpgenerator-cli/badges/coverage.png?b=3.x)](https://scrutinizer-ci.com/g/wsdl2phpgenerator/wsdl2phpgenerator-cli/?branch=3.x)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/wsdl2phpgenerator/wsdl2phpgenerator-cli/badges/quality-score.png?b=3.x)](https://scrutinizer-ci.com/g/wsdl2phpgenerator/wsdl2phpgenerator-cli/?branch=3.x)
[![Dependency Status](https://www.versioneye.com/user/projects/53c4ab1b617ed40453000073/badge.svg)](https://www.versioneye.com/user/projects/53c4ab1b617ed40453000073)

Command line application wrapper for the [wsdl2phpgenerator](https://github.com/wsdl2phpgenerator/wsdl2phpgenerator) library. Takes a WSDL file and outputs PHP class files ready to use.

Uses the [MIT licence](http://www.opensource.org/licenses/mit-license.php).
## Installation

## Contributors
Originally developed by [@walle](https://github.com/walle) and includes bugfixes and improvements from [@vakopian](https://github.com/vakopian), [@statikbe](https://github.com/statikbe/),
[@ecolinet](https://github.com/ecolinet), [@nuth](https://github.com/nuth/), [@chriskl](https://github.com/chriskl/), [@RSully](https://github.com/RSully/), [@jrbasso](https://github.com/jrbasso/),
[@dypa](https://github.com/dypa/), [@Lafriks](https://github.com/Lafriks/) and [@kasperg](https://github.com/kasperg/).
Use the phar version or install the wsdl2phpgenerator-cli as dev-dependency to your project

composer require wsdl2phpgenerator/wsdl2phpgenerator-cli --dev

Pull requests are very welcome. Please read [our guidelines for contributing](https://github.com/wsdl2phpgenerator/wsdl2phpgenerator/blob/master/CONTRIBUTING.md).
## Usage

## Mailing list
When installed with composer use:

There is a mailing list for the project at [https://groups.google.com/forum/#!forum/wsdl2phpgenerator](https://groups.google.com/forum/#!forum/wsdl2phpgenerator)
vendor/bin/wsdl2php -i input.wsdl -o tmp/my/directory/wsdl

## Usage
or

vendor/bin/wsdl2php -i "http://www.webservicex.net/CurrencyConvertor.asmx?WSDL" -o tmp/phub -ns=My\\NameSpace\\Entity --soapClientClass=\\My\\NameSpace\\SoapClient

Getting a cli version of wsdl2phpgenerator 3 is a work in progress.

To use the last version of wsdl2phpgenerator 2 follow these steps:
To use the phar version of wsdl2phpgenerator follow these steps:

1. Download [wsdl2phpgenerator-2.5.5.phar](https://github.com/wsdl2phpgenerator/wsdl2phpgenerator/releases/download/2.5.5/wsdl2phpgenerator-2.5.5.phar)
1. Run `php wsdl2phpgenerator-2.5.5.phar -i input.wsdl -o tmp/my/directory/wsdl`
1. Download [wsdl2phpgenerator-3.4.0.phar](https://github.com/wsdl2phpgenerator/wsdl2phpgenerator-cli/releases/download/3.4.0/wsdl2phpgenerator-3.4.0.phar)
1. Run `php wsdl2phpgenerator-3.4.0.phar -i input.wsdl -o tmp/my/directory/wsdl`

The directory is created if possible.

## Contributors
See [contributors](https://github.com/wsdl2phpgenerator/wsdl2phpgenerator-cli/graphs/contributors).
Pull requests are very welcome. Please read [our guidelines for contributing](https://github.com/wsdl2phpgenerator-cli/wsdl2phpgenerator/blob/master/CONTRIBUTING.md).

## Versioning

This project mirrors [the versioning of the wsdl2phpgenerator library](https://github.com/wsdl2phpgenerator/wsdl2phpgenerator#versioning). A new release of the library will incur a new release of the CLI app with a similar name.

## Licence

Uses the [MIT licence](http://www.opensource.org/licenses/mit-license.php).

## todo
- tag dev-master as 2.5.5
- edit readme old version hint
- edit readme for phar usage and composer usage
- phpcs
4 changes: 1 addition & 3 deletions box.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
"compactors": [
"Herrera\\Box\\Compactor\\Php"
],
"directories": "Only include vendor directories that are part of require. This avoids unnecessary dev dependencies.",
"directories": [
"vendor/composer",
"vendor/symfony",
"vendor/wsdl2phpgenerator",
"vendor/psr",
"lib",
"src"
],
"files": "Include files from vendor/composer/autoload_files.php as they are required even though they are not used.",
"files": [
"vendor/autoload.php",
"vendor/phpseclib/phpseclib/phpseclib/Crypt/Random.php",
Expand Down
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@

<!-- Create a proper release for the tag as tags cannot have assets attached. -->
<githubcreaterelease username="${username}" password="${password}" authMethod="password"
owner="wsdl2phpgenerator" repository="wsdl2phpgenerator" tagName="${version}"
owner="wsdl2phpgenerator" repository="wsdl2phpgenerator-cli" tagName="${version}"
releaseId="release" />

<!-- Finally we can create the asset. -->
<githubcreateassets username="${username}" password="${password}" authMethod="password"
owner="wsdl2phpgenerator" repository="wsdl2phpgenerator" releaseId="${release}">
owner="wsdl2phpgenerator" repository="wsdl2phpgenerator-cli" releaseId="${release}">
<fileset dir=".">
<include name="wsdl2phpgenerator-*.phar"/>
</fileset>
Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"require": {
"php": ">=5.3.3",
"ext-soap": "*",
"wsdl2phpgenerator/wsdl2phpgenerator": "3.*",
"psr/log": "1.0.*",
"symfony/console": "~2.6.0",
"symfony/options-resolver": "~2.6.0"
"wsdl2phpgenerator/wsdl2phpgenerator": "^3.4",
"psr/log": "^1.0",
"symfony/console": "~2.6|~3.4|~4|~5",
"symfony/options-resolver": "~2.6|~3.0|~4|~5"
},
"require-dev": {
"kasperg/phing-github": "0.2.*",
"kherge/box": "2.4.*",
"phing/phing": "2.7.*",
"phpunit/phpunit": "4.0.*",
"kherge/box": "^2.7",
"phing/phing": "~2.7",
"phpunit/phpunit": "~4.4",
"doctrine/annotations": "1.2.*"
}
}
Loading