M
M
Mikhail Shatilov2017-12-24 07:32:19
Composer
Mikhail Shatilov, 2017-12-24 07:32:19

What config is needed for Yii2 satis?

I want to make a proxy for composer. So that you can remotely build packages, at least from a github, at least from anywhere, and then just connect this source to the repositories and everything will be fine.
Googled satis which is just what you need. At the moment, I can’t do it right: gigabytes of packages of all versions are downloaded instead of what composer update would offer me.
Is it possible to implement this using satis and what should be corrected in the config?

{
  "name": "My Satis",
  "homepage": "http://example.com",
  "require": {
    "yiisoft/yii2": "~2.0.13"
  },
  "repositories": [
      {
          "type": "composer",
          "url": "https://packagist.org"
      }
  ],
  "require-all": false,
  "require-dependencies": true,
  "require-dev-dependencies": true,
  "archive": {
    "directory": "dist",
    "format": "zip",
    "skip-dev": true
  }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question