{"id":13768923,"url":"https://github.com/WsdlToPhp/PackageGenerator","last_synced_at":"2025-05-11T00:30:57.751Z","repository":{"id":32088474,"uuid":"35660532","full_name":"WsdlToPhp/PackageGenerator","owner":"WsdlToPhp","description":"Generates a PHP SDK based on a WSDL, simple and powerful, WSDL to PHP","archived":false,"fork":false,"pushed_at":"2024-12-09T20:39:04.000Z","size":9092,"stargazers_count":431,"open_issues_count":22,"forks_count":73,"subscribers_count":17,"default_branch":"develop","last_synced_at":"2025-04-15T00:52:54.642Z","etag":null,"topics":["docker","packagegenerator","php","php-library","php-sdk","sdk-generator","soap","soap-client","standalone","wsdl","wsdl-to-php"],"latest_commit_sha":null,"homepage":"https://providr.io","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WsdlToPhp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-05-15T07:37:11.000Z","updated_at":"2025-02-21T07:23:00.000Z","dependencies_parsed_at":"2022-07-30T05:47:48.223Z","dependency_job_id":"bb0ab116-2876-4ffd-bb9a-31afe3a42cda","html_url":"https://github.com/WsdlToPhp/PackageGenerator","commit_stats":{"total_commits":1742,"total_committers":22,"mean_commits":79.18181818181819,"dds":"0.25373134328358204","last_synced_commit":"296a38caa119bb2a2bf33bbef6fc475f35b7dece"},"previous_names":[],"tags_count":120,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WsdlToPhp%2FPackageGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WsdlToPhp%2FPackageGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WsdlToPhp%2FPackageGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WsdlToPhp%2FPackageGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WsdlToPhp","download_url":"https://codeload.github.com/WsdlToPhp/PackageGenerator/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253501674,"owners_count":21918316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","packagegenerator","php","php-library","php-sdk","sdk-generator","soap","soap-client","standalone","wsdl","wsdl-to-php"],"created_at":"2024-08-03T16:01:28.902Z","updated_at":"2025-05-11T00:30:52.718Z","avatar_url":"https://github.com/WsdlToPhp.png","language":"PHP","funding_links":[],"categories":["Table of Contents"],"sub_categories":["API"],"readme":"# Package Generator\n\n\u003e Package Generator generates a PHP SDK from any WSDL.\n\n[![License](https://poser.pugx.org/wsdltophp/packagegenerator/license)](https://packagist.org/packages/wsdltophp/packagegenerator)\n[![Latest Stable Version](https://poser.pugx.org/wsdltophp/packagegenerator/version.png)](https://packagist.org/packages/wsdltophp/packagegenerator)\n[![TeamCity build status](https://teamcity.mikael-delsol.fr/app/rest/builds/buildType:id:PackageGenerator_Build/statusIcon.svg)](https://github.com/WsdlToPhp/PackageGenerator)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/WsdlToPhp/PackageGenerator/badges/quality-score.png)](https://scrutinizer-ci.com/g/WsdlToPhp/PackageGenerator/)\n[![Code Coverage](https://scrutinizer-ci.com/g/WsdlToPhp/PackageGenerator/badges/coverage.png)](https://scrutinizer-ci.com/g/WsdlToPhp/PackageGenerator/)\n[![Total Downloads](https://poser.pugx.org/wsdltophp/packagegenerator/downloads)](https://packagist.org/packages/wsdltophp/packagegenerator)\n[![StyleCI](https://styleci.io/repos/35660532/shield)](https://styleci.io/repos/35660532)\n[![SymfonyInsight](https://insight.symfony.com/projects/73ec7ea6-a771-487a-8ebe-71f6b2e8fd4a/mini.svg)](https://insight.symfony.com/projects/73ec7ea6-a771-487a-8ebe-71f6b2e8fd4a)\n\nPackage Generator generates a PHP SDK from any WSDL so you can easily consume any SOAP Web Service without wondering how SOAP is used under the hood.\n\nPackage Generator provides many options to generate your package even if a few are required. This project has been tested with many WSDL and is currently used on the platform [Providr.IO](https://providr.io).\n\nPackage Generator generates files that are detailed in the [MANIFEST](/MANIFEST.md). **You are encouraged to read it to understand how and why the files are generated in addition to the way the generated classes are supposed to be used.**\n\n## Installation\n\n### In a project:\n\n```bash\ncomposer require wsdltophp/packagegenerator --dev\n```\n\n### With command line:\n\n```bash\n$ wget https://phar.wsdltophp.com/wsdltophp-php7.phar\n$ chmod +x wsdltophp-php7.phar\n$ mv wsdltophp-php7.phar /usr/local/bin/wsdltophp\n```\n\n### With Docker:\n\n```bash\n$ docker run --rm -it mikaelcom/wsdltophp:tagname\n```\n\n## Usage\n\nThere is two ways to generate your package (apart from being in a project and generating it through the command line):\n\n- **standalone** (*default behaviour*): this means the package is generated as an independent project with its own `composer.json` file. At the end of the generation, the root directory where the package has been generated will contain the `composer.json`, the `composer.lock` file and the `vendor` directory.\n- **not standalone**: this means the package is generated as part of an existing project using its own `composer.json` file.\n\nThe `standalone` option is fully detailed in the [Standalone section](https://github.com/WsdlToPhp/PackageGenerator/wiki/Options#standalone).\n\nAll the options are fully detailed in the [Options page](https://github.com/WsdlToPhp/PackageGenerator/wiki/Options).\n\n### In a project:\n\n```php\nuse WsdlToPhp\\PackageGenerator\\ConfigurationReader\\GeneratorOptions;\nuse WsdlToPhp\\PackageGenerator\\Generator\\Generator;\n\n// Options definition: the configuration file parameter is optional\n$options = GeneratorOptions::instance(/* '/path/file.yml' */);\n$options\n    -\u003esetOrigin('http://developer.ebay.com/webservices/latest/ebaySvc.wsdl')\n    -\u003esetDestination('./MySdk')\n    -\u003esetComposerName('myproject/mysdk');\n// Generator instantiation\n$generator = new Generator($options);\n// Package generation\n$generator-\u003egeneratePackage();\n```\n\n### With command line:\n\nThe command line is:\n```bash\n$ wsdltophp generate:package \\\n    --urlorpath=\"http://developer.ebay.com/webservices/latest/ebaySvc.wsdl\" \\\n    --destination=\"./MySdk\" \\\n    --composer-name=\"myproject/mysdk\" \\\n    --force\n```\n\n_In order to see all the used options, just remove the `--force` argument._\n\n### With Docker:\n\nSuch as with the command line above, simply use the `docker run` command line before:\n```bash\n$ docker run --rm -it --volume $PWD:/var/www mikaelcom/wsdltophp:tagname generate:package \\\n    --urlorpath=\"http://developer.ebay.com/webservices/latest/ebaySvc.wsdl\" \\\n    --destination=\"/var/www/MySdk\" \\\n    --composer-name=\"myproject/mysdk\" \\\n    --force\n```\n\n_In order to see all the used options, just remove the `--force` argument._\n\n## Versions\n\n### 4.0\nFirst released on 03 April 2021, maintained until version 6.0 is released. Please read the [UPGRADE-4.0](UPGRADE-4.0.md) note in order to acknowledge the main changes.\n\n### 3.0\nFirst released on 04 May 2018, maintained until version 5.0 is released. Please read the [UPGRADE-3.0](UPGRADE-3.0.md) note in order to acknowledge the main changes.\n\n**NOT MAINTAINED ANYMORE**: even if version 5 is not published nor is expected soon, maintaining 2 versions, especially for an old PHP version, is time consuming, sorry for the people who would be still using it which would encounter issues fixed in the latest version.\n\n### 2.0\n**Not maintained since 03 April 2021.**\n\nFirst released on 29 Apr 2016, maintained until version 4.0 is released.\n\n### 1.0\nNot maintained anymore\n\n## Testing\n\n```bash\n# launch all tests\n$ phpunit\n\n# launch a testsuite: command, configuration, utils, model, container, parser, file, packagegenerator\n$ phpunit --testsuite=model\n```\n\n## Testing using [Docker](https://www.docker.com/)\nThanks 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:\n- php-7.4\n\nFirst 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:\n```bash\n$ docker-compose up -d --build\n```\n\nYou then have a container named `package_generator` in which you can run `composer` commands and `php cli` commands such as:\n```bash\n# install deps in container (using update ensure it does use the composer.lock file if there is any)\n$ docker exec -it package_generator php-7.4 /usr/bin/composer update\n# run tests in container\n$ docker exec -it package_generator php-7.4 -dmemory_limit=-1 vendor/bin/phpunit\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details. In addition, code documentation is at [doc.wsdltophp.com](http://doc.wsdltophp.com).\n\n## Credits\n\nDevelopers who helped on this project are listed in the [composer.json](composer.json#L8) file as `Contributor` and are:\n- [Gemorroj](https://github.com/Gemorroj)\n- [ceeram](https://github.com/ceeram)\n- [Georgiy Oganisyan](https://github.com/GroxExMachine)\n- [Jan Zaeske](https://github.com/jzaeske)\n- [Tom Mottram](https://github.com/tomp4l)\n- [Catirau Mihail](https://github.com/ustmaestro)\n- [Alexander M. Turek](https://github.com/derrabus)\n- [Valérian Girard](https://github.com/waldo2188)\n- [hordijk](https://github.com/hordijk)\n- [Andreas Möller](https://github.com/localheinz)\n- [Andreas Kintzinger](https://github.com/Phobetor)\n- [Hendrik Luup](https://github.com/hluup)\n- [Jacob Dreesen](https://github.com/jdreesen)\n- [Clifford Vickrey](https://github.com/cliffordvickrey)\n- [Arnaud POINTET](https://github.com/Oipnet)\n- [dypa](https://github.com/dypa)\n- [tbreuss](https://github.com/tbreuss)\n- [Paul Melekhov](https://github.com/gugglegum)\n- [Alex Krátký](https://github.com/AlexKratky)\n\n## FAQ\n\nIf you have any question, please read the [Options page](https://github.com/WsdlToPhp/PackageGenerator/wiki/Options) about the available options to generate the package.\n\nThere is also a [FAQ](https://github.com/WsdlToPhp/PackageGenerator/wiki/FAQ) that contains miscellaneous questions about the package generation and its usage.\n\nThen if you still have a question, feel free to [create an issue](https://github.com/WsdlToPhp/PackageGenerator/issues/new).\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWsdlToPhp%2FPackageGenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWsdlToPhp%2FPackageGenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWsdlToPhp%2FPackageGenerator/lists"}