PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 21, 2022

[FIXED] composer requirements could be resolved to an installable set of packages - zendframework

 January 21, 2022     composer-php, php, zend-framework, zend-framework2     No comments   

Issue

Trying to deploy marketplacephp (marketplacephp.com) to localhost. Composer install is giving me dependencies issues and I've spent hours trying to tweak them so they work to no avail.

Is anyone more experienced able to spot how to fix this please?

P.S. Tried on both windows and ubuntu 14.04 with same results.

composer.json

"require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.3.*",
        "doctrine/mongodb-odm": "1.0.0-BETA11",
        "elasticsearch/elasticsearch": "1.3.0",
        "lusitanian/oauth": "~0.3",
        "geoip2/geoip2": "~2.0",
        "balanced/balanced": "1.*",
        "studio-42/elfinder": "2.*@dev",
        "reliv/elfinder" : "2.0.0-alpha",
        "stripe/stripe-php": "2.*"
    },
    "require-dev": {
        "zendframework/zend-developer-tools": "dev-master",
        "zendframework/zftool": "dev-master",
        "phpmd/phpmd": "1.5.*"
    }

output

C:\xampp\htdocs\marketplace-dev>composer install
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
    - Installation request for reliv/elfinder 2.0.0-alpha -> satisfiable by reliv/elfinder[2.0.0-alpha].
    - Conclusion: don't install zendframework/zendframework 2.3.9
    - Conclusion: don't install zendframework/zendframework 2.3.8
    - Conclusion: don't install zendframework/zendframework 2.3.7
    - Conclusion: don't install zendframework/zendframework 2.3.6
    - Conclusion: don't install zendframework/zendframework 2.3.5
    - Conclusion: don't install zendframework/zendframework 2.3.4
    - Conclusion: don't install zendframework/zendframework 2.3.3
    - Installation request for zendframework/zend-developer-tools dev-master -> satisfiable by zendframework/zend-developer-tools[dev-master].
    - Conclusion: don't install zendframework/zendframework 2.3.2
    - zendframework/zend-developer-tools dev-master requires zendframework/zend-debug ^2.5 || ^3.0 -> satisfiable by zendframework/zend-debug[2.5.0, 2.5.1].
    - don't install zendframework/zend-debug 2.5.0|don't install zendframework/zendframework 2.3.0
    - don't install zendframework/zend-debug 2.5.1|don't install zendframework/zendframework 2.3.0
    - reliv/elfinder 2.0.0-alpha requires zendframework/zendframework 2.* -> satisfiable by zendframework/zendframework[2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7, 2.3.8, 2.3.9].
    - Conclusion: don't install zendframework/zendframework 2.3.1

Solution

Change "zendframework/zend-developer-tools": "dev-master" to "zendframework/zend-developer-tools": "^1.0"
dev-master is only good for early development time but should not be used long term. In this case current master branch of developer tools have higher minimum requirements than your project supports.

I should note that this set of dependencies hints that software you are trying to install was not updated for around 3 years.



Answered By - Xerkus
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing