cakephp / phinx

PHP Database Migrations for Everyone
https://phinx.org
MIT License
4.47k stars 890 forks source link

Unable to install packagist #1073

Closed RobbiNespu closed 7 years ago

RobbiNespu commented 7 years ago

Hi, I tried to add phinx on my system but failed

$ php composer.phar require robmorgan/phinx
Using version ^0.8.0 for robmorgan/phinx                                  
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)                             
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - cakephp/migrations 1.6.7 requires robmorgan/phinx 0.6.5 -> satisfiable by robmorgan/phinx[v0.6.5] but these conflict with your requirements or minimum-stability.
    - cakephp/migrations 1.6.7 requires robmorgan/phinx 0.6.5 -> satisfiable by robmorgan/phinx[v0.6.5] but these conflict with your requirements or minimum-stability.
    - cakephp/migrations 1.6.7 requires robmorgan/phinx 0.6.5 -> satisfiable by robmorgan/phinx[v0.6.5] but these conflict with your requirements or minimum-stability.
    - Installation request for cakephp/migrations 1.6.7 -> satisfiable by cakephp/migrations[1.6.7].

Installation failed, reverting ./composer.json to its original content.

Below are my composer.json file

{
    "name": "cakephp/app",
    "description": "CakePHP skeleton app",
    "homepage": "http://cakephp.org",
    "type": "project",
    "license": "MIT",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/RobbiNespu/BrowserDetection"
        }
    ],
    "require": {
        "php": ">=5.5.9",
        "cakephp/cakephp": "3.3.*",
        "mobiledetect/mobiledetectlib": "2.*",
        "cakephp/migrations": "1.6.7",
        "cakephp/plugin-installer": "*",
        "karyamedia/ipay88": "dev-master",
        "geoip2/geoip2": "~2.0",
        "dereuromark/cakephp-queue": "dev-master",
        "robbinespu/mykad": "^1.0",
        "robbinespu/browser-detection": "dev-master"
    },
    "require-dev": {
        "psy/psysh": "@stable",
        "cakephp/debug_kit": "~3.2 !=3.5.1",
        "cakephp/bake": "~1.1"
    },
    "suggest": {
        "markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.",
        "phpunit/phpunit": "Allows automated tests to be run without system-wide install.",
        "cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP."
    },
    "autoload": {
        "psr-4": {
            "App\\": "src"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Test\\": "tests",
            "Cake\\Test\\": "./vendor/cakephp/cakephp/tests"
        }
    },
    "scripts": {
        "post-install-cmd": "App\\Console\\Installer::postInstall",
        "post-create-project-cmd": "App\\Console\\Installer::postInstall",
        "post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump",
        "check": [
            "@test",
            "@cs-check"
        ],
        "cs-check": "vendor/bin/phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests",
        "cs-fix": "vendor/bin/phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests",
        "test": "vendor/bin/phpunit --colors=always"
    },
    "minimum-stability": "beta",
    "prefer-stable": true
}
daison12006013 commented 7 years ago

@RobbiNespu Upgrade your cakephp/migrations.

It says there that 1.6.7 cakephp/migrations is only capable to handle 0.6.5 phinx, so try to find out what cakephp version you need to get support for 0.8.*.

Other way is to force require the composer to use 0.6.* of phinx