How to install this composer package - Webkadabra/yii2-dotenv GitHub Wiki

Dear fellow developers, I notice a lot of people don't know how to use forked composer packages without overriding package name and all the namespaces as their first commit, but this is not really necessary.

To be able to use this package over parent yiithings/yii2-dotenv package, all you have to do is add address of forked repo to your composer.json's repositories section - you don't have to change actual package name in require section:

"repositories":
  [
    {
      "type": "vcs",
      "url": "https://github.com/webkadabra/yii2-dotenv"
    }
  ],
  "require": {
    "yiithings/yii2-dotenv": "dev-master",
  }

Now, when you do composer update yiithings/yii2-dotenv or composer require yiithings/yii2-dotenv you will receive code from forked repo.