bryglen / yii2-braintree

braintree wrapper for yii 2
0 stars 5 forks source link

Issue on installing the component #1

Open felipezkn opened 9 years ago

felipezkn commented 9 years ago

I've installed the braintree via composer, and now I wish to install, also using Composer, the yii2-braintree.

I got the following error, after inserting "bryglen/yii2-braintree": "*"line in the require section of my composer.json:

    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "*",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "braintree/braintree_php": "2.37.0",
        "bryglen/yii2-braintree": "*"
    },

After that, I executed composer update and the result was:

sudo composer update
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
    - The requested package bryglen/yii2-braintree 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 <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

What am I doing wrong?

felipezkn commented 9 years ago

The problem was the minimum-stability line. I changed it to dev and it passed. But it appeared another problem: I have installed Braintree 2.37.0 version and now the composer update shows me:

  Problem 1
    - Installation request for bryglen/yii2-braintree * -> satisfiable by bryglen/yii2-braintree[dev-master].
    - bryglen/yii2-braintree dev-master requires braintree/braintree_php 2.30.0 -> no matching package found.