lundi 4 avril 2016

Installing package with composer from git repository

I am trying to install a package from private repository but I get an error of:

Problem 1
- The requested package chef-php-api could not be found in any version, there may be a typo in the package name.

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 <http://ift.tt/1QfuRiU; for more details.

I have checked for the name issue, there doesn't seem to be a typo issue with a name to me, and I have a set "minimum-stability": "dev" in my composer.json, so not sure what I did wrong.

This is my composer.json file:

{
  "name": "laravel/laravel",
  "description": "The Laravel Framework.",
  "keywords": ["framework", "laravel"],
  "license": "MIT",
  "type": "project",
  "repositories": [
    {
        "type": "git",
        "name": "chef-php-api",
        "url": "https://urlOfTheRepository/chef-php-api.git"
    }
  ],
  "require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.1.*",
    "chef-php-api": "*"
  },
  "require-dev": {
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "~4.0",
    "phpspec/phpspec": "~2.1"
  },
  "autoload": {
    "classmap": [
        "database"
    ],
    "psr-4": {
        "App\\": "app/"
    }
  },
  "autoload-dev": {
    "classmap": [
        "tests/TestCase.php"
    ]
  },
  "scripts": {
    "post-install-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-update-cmd": [
        "php artisan clear-compiled",
        "php artisan optimize"
    ],
    "post-root-package-install": [
        "php -r \"copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ]
  },
  "config": {
    "preferred-install": "dist"
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire