WsdlToPhp / PackageGenerator

Generates a PHP SDK based on a WSDL, simple and powerful, WSDL to PHP
https://providr.io
MIT License
422 stars 73 forks source link

Composer Repository #224

Open faithfulman18 opened 3 years ago

faithfulman18 commented 3 years ago

Hello,

We currently use a private repository to download packages via Composer. I'm wondering if there is any way to make your project running against a WSDL do the same thing. Similar to how you added the flag to disable tls verification (--composer-settings="config.disable-tls:true"), however this would live at a different place within the composer.json file.

Here is an example of what would be output:

{
  "name": "projectname",
  "description": "project description",
  "type": "project",

"repositories": [ { "packagist": false }, { "type": "composer", "url": "http://domain.com/repository/..." } ],

   "require": {
        "php": ">=5.3.3",
        "ext-soap": "*",
        "ext-mbstring": "*",
        "wsdltophp/packagebase": "~2.0"
    },
    "autoload": {
        "psr-4": {
            "thisProject\\": "./src\\"
        }
    },
    "config": {
        "disable-tls": true
    }
}
mikaelcom commented 3 years ago

Not sure to understand your question,

Do you need to add the repositories settings to the generated composer.json file when generating a package? If so, you should be able to pass the settings to the command line or using the setComposerSettings method, read more at https://github.com/WsdlToPhp/PackageGenerator/wiki/Options#composer-settings. If it does not work as expected, it might need to be improved :smile:.