DaMitchell / steam-api-php

A PHP wrapper for the Steam api
BSD 2-Clause "Simplified" License
82 stars 26 forks source link

Impossible to join the package inside laravel 5 #12

Closed abenevaut closed 8 years ago

abenevaut commented 8 years ago
42antoine$ composer require "da-mitchell/steam-api"

Using version ^2.0 for da-mitchell/steam-api
./composer.json has been updated
> php artisan clear-compiled

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 da-mitchell/steam-api 2.0.2
    - Conclusion: don't install da-mitchell/steam-api 2.0.1
    - Conclusion: remove guzzlehttp/guzzle 6.1.1
    - Installation request for da-mitchell/steam-api ^2.0 -> satisfiable by da-mitchell/steam-api[2.0.0, 2.0.1, 2.0.2].
    - Conclusion: don't install guzzlehttp/guzzle 6.1.1
    - da-mitchell/steam-api 2.0.0 requires guzzlehttp/guzzle ~5.2 -> satisfiable by guzzlehttp/guzzle[5.2.0, 5.3.0].
    - Can only install one of: guzzlehttp/guzzle[5.2.0, 6.1.1].
    - Can only install one of: guzzlehttp/guzzle[5.3.0, 6.1.1].
    - Installation request for guzzlehttp/guzzle == 6.1.1.0 -> satisfiable by guzzlehttp/guzzle[6.1.1].

Installation failed, reverting ./composer.json to its original content.
DaMitchell commented 8 years ago

Ahh so there's a new version of guzzle out. I'll take a look at this today

DaMitchell commented 8 years ago

I have a pushed an update, 2.1.0, that uses the latest version of Guzzle. I don't really have any experience with Laravel and I'm look but not finding any reference to a Guzzle dependency, any chance you could point me in the right direction or show me what other dependencies you are installing with composer?

abenevaut commented 8 years ago

Yes, it seems to be no dependency with Guzzle in laravel. I think like you said, this is a Guzzle version issue. I just wasn't able to say it because i'm not really experienced with composer and meet this message for the first time.

I tried again after your update and composer downloads the package with success. I'll test it soon with laravel and will open other issue if needed.

42antoine$ composer require "da-mitchell/steam-api"

Using version ^2.1 for da-mitchell/steam-api
./composer.json has been updated
> php artisan clear-compiled

Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Installing da-mitchell/steam-api (2.1.0)
    Downloading: 100%         

Writing lock file
Generating autoload files
> php artisan optimize

Generating optimized class loader

Following, my composer.json

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.1.*",
        "illuminate/html": "5.*",
        "zizaco/entrust": "dev-laravel-5",
        "chrisbjr/api-guard": "^2.3",
        "mpdf/mpdf": "^6.0",
        "predis/predis": "^1.0",
        "creitive/laravel5-breadcrumbs": "^1.0",
        "invisnik/laravel-steam-auth": "^2.0",
        "xpaw/php-source-query-class": "^1.0",
        "da-mitchell/steam-api": "^2.1"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1",
        "codeception/codeception": "*"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/TestCase.php"
        ]
    },
    "scripts": {
        "post-install-cmd": [
            "php artisan clear-compiled",
            "php artisan optimize"
        ],
        "pre-update-cmd": [
            "php artisan clear-compiled"
        ],
        "post-update-cmd": [
            "php artisan optimize"
        ],
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ]
    },
    "config": {
        "preferred-install": "dist"
    }
}
DaMitchell commented 8 years ago

Glad to hear.