Is it possible to ignore child dependencies in Composer config?

前端 未结 4 1339
独厮守ぢ
独厮守ぢ 2020-12-30 01:49

When I run composer install, it will install all my \"require\" and the \"require\" of the other package.

My composer.json

{
    \"name\": \"my_app\"         


        
4条回答
  •  我在风中等你
    2020-12-30 02:42

    One more way to solve it:

    1. Clone package to your repository and fix dependencies
    2. In your composer.json add your repository:
    "repositories": [
        { "type": "git", "url": "https://github.com/zhovtyj/mailchimp-laravel" }
    ],
    "require": {
        "php": "^7.1.3",
        ***
        "skovmand/mailchimp-laravel": "dev-master",
    },
    

提交回复
热议问题