How do you get composer to install a non-composer package?

后端 未结 2 840
一整个雨季
一整个雨季 2020-12-23 14:25

I am trying to get composer to download the following library from this project, however, it does not have a composer.json file in it so I\'m not sure if this i

2条回答
  •  离开以前
    2020-12-23 14:39

    To include a non composer repository you need to set up a package repository. Which would give you something like:

    {
        "repositories": [
            {
                "type": "package",
                "package": {
                    "name": "fguillot/picoFeed",
                    "version": "dev-master",
                    "source": {
                        "url": "https://github.com/fguillot/picoFeed",
                        "type": "git",
                        "reference": "origin/master"
                    }
                }
            }
        ],
        "require": {
            "fguillot/picoFeed": "dev-master"
        }
    }
    

提交回复
热议问题