How do i use Composer to install a package without a version (only master)

前端 未结 4 1056
無奈伤痛
無奈伤痛 2021-02-12 22:56

I am new to composer and i am trying to install this following lib via the composer update

https://github.com/neitanod/forceutf8

so as i unders

4条回答
  •  遥遥无期
    2021-02-12 23:34

    In composer.json:

    {
        "name": "example/example-app",
        "repositories": [
          {
            "type": "vcs",
            "url": "https://github.com/neitanod/forceutf8"
          }
        ],
        "require": 
          {
            "neitanod/forceutf8": "dev-master",
            "raven/raven": "0.7.1",
            "monolog/monolog": "1.7.*",
            "smarty/smarty": "3.1.16"
          }
    }
    

提交回复
热议问题