- issue #312, pr #313 - Invalid getter and annotation for nullable property
- issue #308, pr #309 - Symfony 7 / added support for symfony 7
- issue #304, pr #305 - Override required PHP version in composer.json
- issue #298, pr #303 - Undefined constant "WsdlToPhp\PackageGenerator\Generator\SOAP_1_1"
- issue #299, pr #301 - Deprecated Warnings for Dynamic Properties
- issue #300, pr #302 - Incorrect default value for integer attribute
- issue #285, pr #288 - Type-Error when using regex pattern for decimal restriction
- issue #292, pr #293 - Wrong type for gYearMonth and gMonthDay
- pr #291 - Only cover src dir
- pr #281 - Add Rector PHP to ease code improvement
- issue #255, pr #283 - Class inheritance possibly misbehaving when having restriction tag
- issue #280, pr #282 - Optional parameters before required ones in constructor
- Fix Github release workflow
- issue #266, pr #270 - Usage of an undefined constant within a generate EnumType class #266
- pr #267 - Remove deprecated message
- issue #268, pr #271 - sequence Tag min/maxOccurs attribute is ignored
- pr #269 - In method Utils::getStreamContextOptions function array_merge_recursive works not as expected
- issue #272, pr #273 - Getter for a nullable-array-typed property is invalid
- issue #274 - Improper validation of array #274
- issue #262 - Different destination dir when generating using 3.2.7 VS 4.1.1 ??
- issue #265 - Use statement for InvalidArgumentException is missing when needed in ServiceType class
- issue #264 - Wrong PHPDoc @param name and description
- issue #256 - subdirectory not converted in namespaces
- pr #259 - add ReturnTypeWillChange attributes for PHP 8.1
- issue #257 - choice tag is not fully handled properly
- Improvement for choice tag handling
- issue #257 - choice tag is not fully handled properly
- issue #258 - Add missing XML built-in dataTypes
- Array-typed properties are now null by default
- issue #250 - Generator not respect nillable
- issue #251 - Use targetNamespace from another location
- issue #245 - should be compatible with AbstractStructArrayBase::add($item)
- issue #246 - Composer::getComposerFilePath() must be of the type string, bool returned
- issue #244 - Don't add use InvalidArgumentException; within EnumType files
- issue #243 - Prefix/Suffix option used in namespace should not be used in namespace
- issue #124 - PHP >= 7.4 tasks
- Code requires PHP >= 7.4
- Generated code requires PHP >= 7.4
- Code cleaning
- Update README
- Add MANIFEST.md explaining how files are generated and how they should be used
- Update Travis CI settings
- Update PHPUnit settings
- Update LICENSE file
- BC: read UPGRADE-4.0.md
- Version 2.0 is no more maintained
- issue #230 - Avoid repeated meta value within generated meta documentation
- issue #217 - Inherited struct methods should not be overwritten
- issue #214 - element with maxOccurs unbounded inside a sequence gets translated into a string instead of an array
- issue #229 - Docker image issues
- issue #227 - Give additional information and skip error and continue stub generation on PHP Fatal error: Uncaught InvalidArgumentException: Value "NULL" can't be used to get an object from ...
- issue #226 - Signatures for .phar releases?
- issue #219 - How do you get the response soap:Header details
- issue #221 - Feature: Actual versions docker images on docker hub
- issue #223 - PHP 7.4 or PHP 8?
- issue #170 - Enhance generated classes based on PackageBase updates
- Minor typo
- Update contributors list
- issue #210 - Validation for constraint: fractionDigits fails for integer numbers (0 fraction digits)
- issue #209 - Name "0" is invalid when instantiating PhpFunctionParameter object
- issue #208 - not able to use with symfony/console v5+
- issue #200 - Array structures are missing from generated package
- issue #201 - Do not generate empty constructor
- issue #199 - Inheritance from outer namespace
- issue #177 - Structure & Enumeration has same name will produce weird result
- issue #181 - PHP Fatal error in AbstractModelFile.php
- issue #183 - Wrong variable name in StructType
- issue #185 - undefined StructType class
- issue #168 - Invalid rules generation for non numeric value
- issue #171 - Improve AttributeGroup > Attribute parsing
- issue #172 - is_numeric is too permissive when checking for int's
- issue #173 - Add maxOccurs validation rule
- issue #174 - Documentation missing for enumeration value
- issue #176 - Use mb_* functions when possible
- issue #178 - Int setter throws exception when setting null
- Miscellaneous improvements and refactorings:
- Validation rules: code generation and unit tests
- Remove unused use statements
- Use better Docker image base in order to be able to test and run the generator with any PHP version
- Improve meta merging and order
- issue #128 - Using the DOMDocument $any value
- issue #133 - Choice type
- issue #153 - Choice type
- issue #158 - Support of xs:list
- issue #165 - Improve/Fix validation rules for unions
- issue #167 - Infinite loop while figuring out the inheritance
- issue #149 - FractionDigitsRule does not allow less digits than the specified maximum
- issue #151 - Provide Docker settings
- issue #154 - PHP reserved keywords list is incomplete for PHP > 7.0
- issue #157 - Missing entry from ClassMap
- pull request #142 - Fix: No need to update composer itself twice
- pull request #143 - Enhancement: Cache dependencies between builds
- pull request #144 - Fix typo in PHPDoc
- pull request #145 - Remove duplicate PHPDoc argument
- pull request #147 - Enhancement: Improve output from running php-cs-fixer
- pull request #146 - Enhancement: Keep packages sorted in composer.json
- pull request #150 - Change FractionDigitsRule to accept less fraction digits than the defined maximum
- issue #139 / Pull request #140 - How to use another xsd_types.yml
- issue #134 - Default value of boolean type is a string
- issue #135 - Impact of pull request #20 on PackageBase
- issue #132 - Impact of "AbstractSoapClientBase should not define static SoapClient instance"
- issue #125 - Under PHP 7.2: count(): Parameter must be an array or an object that implements Countable
- pull request #127 - Moved tests directory to the dev autoloader
- pull request #126 - Allow Symfony 4
- issue #120 - Add option to save wsdl locally
- issue #123 - Class with same attributes in different registers, breaks constructor and setters
- issue #112 - Gather method "none" generates only a single service file with one single method
- issue #111 - '/' not escaped in pattern rule
- issue #109 - Single quotes and backslashes not escaped in pattern rule
- update unit test resources :)
- invalid values assigned to an array should be stored and not displayed when they are detected
- issue #95 - Dependency composer
- issue #96 - Improve the Readme
- issue #98 - Setter/Getter wrongly named
- issue #99 - Export/Import generator options and parsed data
- issue #101 - setSoapHeader parameter incorrect
- issue #102 - Gather methods option should only be taken into account on class generation
- issue #103 - Invalid typehint
- issue #93 - Improve ArrayType::set* method annotations
- Improve unit tests for file validation rules, add SensioLabs Insight badge, improve generated validation rule exception message
- issue #92 - FractionDigitsRule counts . to the fraction digits
From now on there is only one release as the composer.json has been updated in order to match multiple versions that makes the project working either on 5.3.3 >= PHP >= 5.5.9. Two Phar files will be created using PHP 5 and PHP 7.
Issues fixed:
- issue #91 - Add option to customize final destination src
- issue #89 - Use wsdltophp/domhandler project as dependency
- issue #86 - Review restrictions
- issue #85 - Bool validation rule
- issue #84 - Improve/Fix typehint determination for unions
- issue #83 - better debug support
- issue #82 - Annotations from an attributeGroup
- issue #81 - SoapHeader definitions per operation/method should not contain a space before the colon punctuation
- issue #80 - Invalid typehint
- issue #76 - "UNKNOWN" type hint is invalid
- issue #77 - Properties without type
- issue #79 - Inheritance between a Struct and an Enumeration
- issue #57 - Unable to determine SoapHeader name and type
- pull request #73 - Fixed issue with HTTPS urls
- BC: the
WsdlToPhp\PackageGenerator\Generator\Utils::getContentFromUrlContextOptions
has been renamed togetStreamContextOptions
, in addition the first parameter namedurl
has been removed due to its uselessness
- BC: the
- pull request #70 - phpdoc & composer fixes
- issue #67 - Windows not able to run composer due to missing CA Certificate File
- pull request #69 - use stable versions
- issue #63 - base64Binary in Generated Classes
- issue #64 - Integer type generated for XSD duration types
- issue #60 - Incorrect validation rule: is_string() on int[] values
- issue #56 - Problem with generated request XML
- issue #55 - xsd:long is "int" in validation rules - error with values that not fit
- issue #50 - Support for Cyrillic alphabet
- From now, any unicode character should be handled and generated as it is as a PHP variable/parameter/method/class
- Read more at regular expression for unicode
- issue #48 - minOccurs=0 not works
- From now, any not required property that can be removed from request (minOccurs=0 and nillable=true) is unset on object instantiation
- issue #49 - Use schema attribute's attributes to apply validation rule on generated properties
- From now, validation rules are automatically added to every setter so you're informed of an invalid value before sending the request which throws an \InvalidArgumentException
- If you do not want the validation rules to be added to the setters, set the option
validation
tofalse
before generating the package
- issue #52 - No autocomplete because of return type on a new line after @return in annotation
- Fixed thanks to PhpGenerator issue 5
- issue #53 - Incorrect variable type
- This issue only affects struct properties that match "virtual" structs which are array
- BC: the array type attribute detection is now better (hopefully perfect) and can change attributes from simple type hiny to array type hint. This means that you now have to pass an array as parameter otherwise it will break
- issue #54 - Naming. Class _Add and method _add_1/2/3... names. Need to minify reserved_keywords.yml
- BC: generated classes/methods may change after a new generation
- Classes are now not renamed if they don't use PHP reserved keywords (before, methods were used too to rename the class)
- Struct methods are now renamed only if they use Struct methods (one of AbstractStructBase methods)
- StructArray methods are now renamed only if they use Struct and StructArray methods (one of AbstractStructArrayBase methods)
- Service methods are now renamed only if they use Service methods (one of AbstractSoapClientBase methods)
- BC: generated classes/methods may change after a new generation
- issue #51 - Error while passing array parameter
- The main issue was not an issue, the detected issue was an error on the SoapHeader type hint defined in the setSoapHeader* method's signature
- issue #45 - Reserved PHP-Keywords in Class Names
- issue #47 - XSD types are not well inherited by elements
- Improve, once again, XSD to PHP type by ensuring usage of strict PHP types
- Improve struct attribute type determination based on recursive inheritance
- issue #41 - Support for arrays
- Ensure non conflicting variable name in setter when paramter is an array and named
item
(as previous item iteration variable was named item)
- Ensure non conflicting variable name in setter when paramter is an array and named
- Add
time
XSD type matchingstring
PHP type
- issue #44 - Constant naming separate with underscore
- BC:
- enumeration constants are renamed such
myConstantValue
is nowMY_CONSTANT_VALUE
instead of previously beingMYCONSTANTVALUE
. Be sure to update your code that use enumeration's constants
- enumeration constants are renamed such
- BC:
- issue #47 - XSD types are not well inherited by elements
- Improvements on recursive schema loading
- Improvements on meta gathering in generated classes
- Handle anonymous types
- Improve/fix readme
- issue #40 - Support for SSL Context Options
- issue #41 - Support for arrays
- The addTo{property name} method has been added and accept an item to be added to the property. If the item is not of the correct type depending on the item's type, it throws an \InvalidArgumentException.
- The set{property name} has been reviewed in order to throw an \InvalidArgumentException if the array passed as parameter contains an invalid item. In the case of an array of values which are defined using an enumeration, it throws only one exception indicating which values are incorrect.
- issue #43 - "composer-name" required even if "standalone=false"
- issue #36 - All tags defined by a Type outs empty in soap requests
- BC:
- classmap returned by ClassMap::get() method is now correct for namespaced struct classes, so it's more of a break changes fixation. Before that, your XML request may be incomplete due to this issue
- issue #35 - __Construct set methods call and enum value conflict
- issue #34 - Name "0001CreateRequest" is invalid, please provide a valid name
- issue #33 - Name "" is invalid, please provide a valid name (operation named 0001CreateRequest)
- Improve readme file, Wiki has been created and filled up with useful additional informations into the FAQ page.
- issue #30 - Possibility to load our own options file when using the command line
- bin/wsdltophp.phar has been removed as it always be tagged with an anterior version than the actual published version. wsdltophp.phar is always available at https://phar.wsdltophp.com/wsdltophp.phar
First major release:
- issue #32 - Wrong Header Namespace ?
- issue #31 - Unable to create function parameter for method "mapIpndDetailsToNumber" with type "NULL"
- BC:
- \Generator\Generator::generateClasses() has been renamed to generatePackage
- issue #29 - Throw an exception instead of returning false
- add getValidValues to EnumType generated class
- issue #28 - Define the destination folder name for each type
- issue #26 - Global sanity checks for more flexibility
- add composer_name option
- BC:
- ClassMap::classMap method has been renamed to get as prefix and suffix are not required from now otherwise it generates a Fatal error such as PHP Fatal error: Constructor ClassMap::classMap() cannot be static
- composer name for the generated package is new and required
- issue #25 - Generate package under src folder
- issue #24 - ErrorException: Use of undefined constant JSON_PRETTY_PRINT
- issue #13 - classmap and namespaces are wrong when not using a prefix
- issue #21 - Inherited class generates wrong object in php
- Fix URL to download phar file
- Add wsdltophp.phar file using Box project to create it,
wsdltophp.phar
should be used from now instead ofconsole
- Move classes under src folder, rename Tests to tests, rename Resources to resources, update composer.json and phpunit accordingly
- BC:
- Usage of GeneratorSoapClient as SoapClient handler that uses AbstractSoapClientBase as base SoapClient handler
- Generator class does not inherit from \SoapClient class anymore
- Improve Utils::getContentFromUrl() and Generator::getUrlContent() methods
- Suffix is now an option as Prefix, read the readme to learn more about it
- Use GeneratorAware layer to share Generator object among created objects
- Use configuration file/reader for Xsd types
- Improve SoapClient\Structs parser
- Fix ArrayType methods (item, first, last, current, offetGet) return annotation
- export composer.json file generation into a new File\Composer class
- improve unit tests
- BC:
- From now, Wsdl origin, package destination, basic authentication credentials, proxy and SoapClient options are contained by the GeneratorOptions instance
- Generator instantiation and usage reviewed, now it only accept one parameter, a GeneratorOptions object
- Removal of WsdlContainer class
- Generator simplification by handling only one Wsdl at a time as it was only possible to do so, code refactored in this way
- Adding the possibility to set the parent class for StructType, ArrayType and ServiceType generated classes (options: wsdl-struct, wsdl-structarray, wsdl-soapclient)
- File\Tutorial class alows to name the generated file as we want
- Reserved keywords only come from configuration file
- Define \InvalidArgumentException's code as the current file line
- Remove no more used methods/constants from Model\AbstractModel
- Add editor config file
- First major release candidate version
- Deep refactoring of all old original classes
- Performance optimizations
- Usage of PhpGenerator package for any generated PHP file
- Namespace support
- Composer usage for generated package dependencies
- Externalization of main classes from which any Struct/Array/Service generated class
- auto-generation sample.php file renamed to tutorial.php
- Usage of PackageBase package
- Enhancements and consolidations on generated Struct classes:
- Fluidity
- Less annotations
- Properties are all well retrieved
- Options removal for simplifications:
- SendArrayAsParameter,
- SendParametersAsArray,
- GenerateAutoload,
- GenerateWsdlClass,
- SubCategory,
- InheritsClassIdentifier
- Fix unit tests according to previous changes
- issue #9 - Leading zero not taken into account in enumeration classes
- 10 - --wsdl-genautoload=false also controls creation of sample.php file (console mode)
- 7 - PHP warning on str_repeat()
- Create tag with correct composer.json file
- Initial version created from original project WsdlToPhp.