I create a widget that is under development. The problem is that when I run:
composer require chofoteddy/yii2-bootstrap-wizard "*"
I get the following message:
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Installation request for chofoteddy/yii2-bootstrap-wizard * -> satisfiable by chofoteddy/yii2-bootstrap-wizard[dev-master].
    - chofoteddy/yii2-bootstrap-wizard dev-master requires vinceg/twitter-bootstrap-wizard * -> no matching package found.
Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
What I seek is to add https://github.com/VinceG/twitter-bootstrap-wizard.git repository as a dependency of my project. "VinceG/twitter-bootstrap-wizard" is not registered in "Packagist".
I modified many times my composer.json file, in order to correct it, but I can not make it work.
My file composer.json:
{
    "name": "chofoteddy/yii2-bootstrap-wizard",
    "description": "Wizard form based on twitter bootstrap plugin (@VinceG)",
    "homepage": "https://github.com/Chofoteddy/yii2-bootstrap-wizard",
    "keywords": [
        "yii2",
        "wizard",
        "bootstrap",
        "yii2-extension"
    ],
    "type": "yii2-extension",
    "version": "0.1",
    "license": "MIT",
    "authors": [
        {
            "name": "Christopher",
            "email": "[email protected]"
        }
    ],
    "minimum-stability": "dev",
    "require": {
        "php": ">=5.4.0",
        "VinceG/twitter-bootstrap-wizard": "*"
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/VinceG/twitter-bootstrap-wizard"
        }
    ],
    "autoload": {
        "psr-4": {
            "chofoteddy\\wizard\\": ""
        }
    }
}
Composer information:
sudo composer self-update
You are already using composer version b2173d28fc8b56236eddc8aa10dcda61471633ec.
				
                        
Because
VinceG/twitter-bootstrap-wizardis not a Composer package (it does not include acomposer.json) you have to define this in yourcomposer.jsonYour repository section should look like this:
You might also have a look at component-installer and the composer-asset-plugin to manage components and bower packages within composer.