Skip to content
This repository has been archived by the owner on Jul 10, 2020. It is now read-only.

Error installing in a ZF3 application #188

Open
olegkrivtsov opened this issue Dec 13, 2016 · 3 comments
Open

Error installing in a ZF3 application #188

olegkrivtsov opened this issue Dec 13, 2016 · 3 comments

Comments

@olegkrivtsov
Copy link

Hi, your module is a nice thing and I'd like to use it in a ZF3 website. But, when I try to install it with Composer php composer.phar require neilime/zf2-twb-bundle, I get error:

Using version ^3.0 for neilime/zf2-twb-bundle
./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
    - Conclusion: don't install neilime/zf2-twb-bundle v3.0.4
    - Conclusion: don't install neilime/zf2-twb-bundle 3.0.3
    - Conclusion: don't install neilime/zf2-twb-bundle v3.0.2
    - Conclusion: don't install neilime/zf2-twb-bundle v3.0.1
    - Conclusion: remove zendframework/zend-hydrator 2.2.1
    - Conclusion: don't install zendframework/zend-hydrator 2.2.1
    - zendframework/zend-stdlib 2.7.0 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0, 1.1.x-dev].
    - zendframework/zend-stdlib 2.7.1 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0, 1.1.x-dev].
    - zendframework/zend-stdlib 2.7.2 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0, 1.1.x-dev].
    - zendframework/zend-stdlib 2.7.3 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0, 1.1.x-dev].
    - zendframework/zend-stdlib 2.7.4 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0, 1.1.x-dev].
    - zendframework/zend-stdlib 2.7.5 requires zendframework/zend-hydrator ~1.0 -> satisfiable by zendframework/zend-hydrator[1.0.0, 1.1.0, 1.1.x-dev].
    - zendframework/zend-stdlib 2.7.6 requires zendframework/zend-hydrator ~1.1 -> satisfiable by zendframework/zend-hydrator[1.1.0, 1.1.x-dev].
    - zendframework/zend-stdlib 2.7.7 requires zendframework/zend-hydrator ~1.1 -> satisfiable by zendframework/zend-hydrator[1.1.0, 1.1.x-dev].
    - zendframework/zend-stdlib 2.7.x-dev requires zendframework/zend-hydrator ~1.1 -> satisfiable by zendframework/zend-hydrator[1.1.0, 1.1.x-dev].
    - Can only install one of: zendframework/zend-hydrator[1.0.0, 2.2.1].
    - Can only install one of: zendframework/zend-hydrator[1.1.0, 2.2.1].
    - Can only install one of: zendframework/zend-hydrator[1.1.x-dev, 2.2.1].
    - Conclusion: don't install zendframework/zend-stdlib 3.0.1|install zendframework/zend-stdlib 2.7.0|install zendframework/zend-stdlib 2.7.1|install zendframework/zend-stdlib 2.7.2|install zendframework/zend-stdlib 2.7.3|install zendframework/zend-stdlib 2.7.4|install zendframework/zend-stdlib 2.7.5|install zendframework/zend-stdlib 2.7.6|install zendframework/zend-stdlib 2.7.7|install zendframework/zend-stdlib 2.7.x-dev
    - Installation request for zendframework/zend-hydrator (locked at 2.2.1) -> satisfiable by zendframework/zend-hydrator[2.2.1].
    - Installation request for neilime/zf2-twb-bundle ^3.0 -> satisfiable by neilime/zf2-twb-bundle[3.0.0, 3.0.3, v3.0.1, v3.0.2, v3.0.4].
    - Conclusion: remove zendframework/zend-stdlib 3.0.1|install zendframework/zend-stdlib 2.7.0|install zendframework/zend-stdlib 2.7.1|install zendframework/zend-stdlib 2.7.2|install zendframework/zend-stdlib 2.7.3|install zendframework/zend-stdlib 2.7.4|install zendframework/zend-stdlib 2.7.5|install zendframework/zend-stdlib 2.7.6|install zendframework/zend-stdlib 2.7.7|install zendframework/zend-stdlib 2.7.x-dev
    - neilime/zf2-twb-bundle 3.0.0 requires zendframework/zend-stdlib ^2.3 || ^3.1 -> satisfiable by zendframework/zend-stdlib[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, 2.4.0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0rc5, 2.4.0rc6, 2.4.0rc7, 2.4.1, 2.4.10, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9, 2.5.0, 2.5.1, 2.5.2, 2.6.0, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.7.5, 2.7.6, 2.7.7, 3.1.0, 3.2.x-dev, 3.1.x-dev, 2.7.x-dev].
    - Can only install one of: zendframework/zend-stdlib[3.1.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[3.2.x-dev, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[3.1.x-dev, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.3, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.4, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.5, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.6, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.7, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.8, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.3.9, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0rc1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0rc2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0rc3, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0rc4, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0rc5, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0rc6, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.0rc7, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.10, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.3, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.4, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.5, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.6, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.7, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.8, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.4.9, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.5.0, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.5.1, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.5.2, 3.0.1].
    - Can only install one of: zendframework/zend-stdlib[2.6.0, 3.0.1].
    - Installation request for zendframework/zend-stdlib (locked at 3.0.1) -> satisfiable by zendframework/zend-stdlib[3.0.1].


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

Do you plan to support ZF3?

@neilime
Copy link
Owner

neilime commented Dec 13, 2016

Hi,

This module is compatible with zf3, as you can see in the travis ci build : https://travis-ci.org/neilime/zf2-twb-bundle/jobs/175795777#L165

Maybe you have a requirement in your composer.json which does not match with a dependency

@olegkrivtsov
Copy link
Author

@neilime I updated packages with php composer.phar update and ran php composer.phar require neilime/zf2-twb-bundle, and it installed OK.

But, for full compatibility with ZF3, it would be good to have the following:

  • Module name is zf2-twb-bundle, which confused me - I expected it to be zf-twb-bundle or something like that (without zf2 version). Didn't you plan to update module name?
  • In ZF3, when you install a module, it automatically injects its name into the config file of your choice. This is done with zend-component-installer Composer plugin: https://github.com/zendframework/zend-component-installer This would be a nice enhancement.

Anyway, thanks for your module!

@neilime
Copy link
Owner

neilime commented Jan 29, 2017

I'm working hard on a new version of this module : https://github.com/neilime/zf-twbs-helper-module

  • Renaming it
  • Supporting Bootstrap 4
  • Better tests and documentation according to Bootsrap documentation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants