0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Composer.phar で GitHub の Repository を require したい

Posted at

やりたいこと

以下のように GitHub の Repository を composer で使いたい

./composer.phar r github/repository

どうすれば

composer.json を編集すればいけた

composer.json
{
  ...
  "repository": [
    // ここから
    {
      "type": "git",
      "url": "git@github.com:github/repository.git"
    }
    // ここまでを追加
  ],
  ...
}

編集後、実行時に Token を求められたら GitHub の Developer Settings から Generate Token しましょう

参考

コマンドでのやり方もある↓

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?