jayzeng / virustotal_apiwrapper

Virus Total Public API v2.0 PHP Wrapper
http://jayzeng.github.io/virustotal_apiwrapper/
MIT License
65 stars 18 forks source link

Hard to install other depends packages #1

Closed olekhy closed 10 years ago

olekhy commented 10 years ago

Hi!

for the project we use as of your virustotal_apiwrapper package an aws sdk php (v2.4.* mandatory), anyway guzzle is used at both and can't be instaled from composer because follow error will be appears:

at execution of command php composer.phar install


[vagrant@www local-om4]$ php composer.phar install --prefer-dist
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - aws/aws-sdk-php 2.4.10 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - aws/aws-sdk-php 2.4.11 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - aws/aws-sdk-php 2.4.12 requires guzzle/guzzle >=3.7.0,<3.9.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4, v3.8.0, v3.8.1].
    - aws/aws-sdk-php 2.4.2 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - aws/aws-sdk-php 2.4.3 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - aws/aws-sdk-php 2.4.4 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - aws/aws-sdk-php 2.4.5 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - aws/aws-sdk-php 2.4.6 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - aws/aws-sdk-php 2.4.7 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - aws/aws-sdk-php 2.4.8 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - aws/aws-sdk-php 2.4.9 requires guzzle/guzzle ~3.7.0 -> satisfiable by guzzle/guzzle[v3.7.0, v3.7.1, v3.7.2, v3.7.3, v3.7.4].
    - Can only install one of: guzzle/guzzle[v3.7.0, v3.6.0].
    - Can only install one of: guzzle/guzzle[v3.7.1, v3.6.0].
    - Can only install one of: guzzle/guzzle[v3.7.2, v3.6.0].
    - Can only install one of: guzzle/guzzle[v3.7.3, v3.6.0].
    - Can only install one of: guzzle/guzzle[v3.7.4, v3.6.0].
    - Can only install one of: guzzle/guzzle[v3.8.0, v3.6.0].
    - Can only install one of: guzzle/guzzle[v3.8.1, v3.6.0].
    - jayzeng/virustotalapi dev-master requires guzzle/guzzle 3.6.*@dev -> satisfiable by guzzle/guzzle[v3.6.0].
    - Installation request for jayzeng/virustotalapi dev-master -> satisfiable by jayzeng/virustotalapi[dev-master].
    - Installation request for aws/aws-sdk-php ~2.4.2 -> satisfiable by aws/aws-sdk-php[2.4.10, 2.4.11, 2.4.12, 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8, 2.4.9].

maybe it is necessary an update of guzzle dependency at virustotal in composer.json?

here is the cut from my local composer.json:


    "require": {
        "php": "~5.3.3",
        "yiisoft/yii": "1.1.14",
        "jayzeng/virustotalapi": "dev-master",
        "aws/aws-sdk-php": "~2.4.2"
    },    
jayzeng commented 10 years ago

Sure thing, I will push an update by the end of the day. Thanks for bringing it up.

jayzeng commented 10 years ago

Committed https://github.com/jayzeng/virustotal_apiwrapper/commit/16c745222736b62b8b50ffeaa36a6480b10854a7, @olekhy let me if it solves the issue.

olekhy commented 10 years ago

yeep, I'll wait for update on https://packagist.org/packages/jayzeng/virustotalapi.

jayzeng commented 10 years ago

Here you go: https://packagist.org/packages/jayzeng/virustotalapi#v0.1.1, let me know if you need anything else.

olekhy commented 10 years ago

thx