Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer Repository #224

Open
faithfulman18 opened this issue Oct 12, 2020 · 1 comment
Open

Composer Repository #224

faithfulman18 opened this issue Oct 12, 2020 · 1 comment
Assignees
Labels

Comments

@faithfulman18
Copy link
Contributor

faithfulman18 commented Oct 12, 2020

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 mikaelcom self-assigned this Oct 13, 2020
@mikaelcom
Copy link
Member

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 😄.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants