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

前端 未结 4 609
甜味超标
甜味超标 2021-02-12 23:06

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:49

    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"
          }
    }
    

提交回复
热议问题