doucao1066 2016-10-05 16:00
浏览 89

作曲家失败 - >作曲家需要sger / laravel-paypal

I want integrate paypal in my Laravel 5.3 proyect. I want use the sger/laravel-paypal package.

When I use the composer require sger/laravle-paypal to install this package, composer report me this errors:

Using version ^0.1.0 for sger/laravel-paypal
./composer.json has been updated
> php artisan clear-compiled
Loading composer repositories with package information
Warning: Accessing php-repo.foticos.com over http which is an insecure protocol.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for sger/laravel-paypal ^0.1.0 -> satisfiable by sger/laravel-paypal[0.1].
    - sger/laravel-paypal 0.1 requires paypal/rest-api-sdk-php 1.7.* -> satisfiable by paypal/rest-api-sdk-php[1.7.2, 1.7.3, 1.7.4, v1.7.0, v1.7.1].
    - paypal/rest-api-sdk-php 1.7.2 requires psr/log 1.0.0 -> satisfiable by psr/log[1.0.0].
    - paypal/rest-api-sdk-php 1.7.3 requires psr/log 1.0.0 -> satisfiable by psr/log[1.0.0].
    - paypal/rest-api-sdk-php 1.7.4 requires psr/log 1.0.0 -> satisfiable by psr/log[1.0.0].
    - paypal/rest-api-sdk-php v1.7.0 requires psr/log 1.0.0 -> satisfiable by psr/log[1.0.0].
    - paypal/rest-api-sdk-php v1.7.1 requires psr/log 1.0.0 -> satisfiable by psr/log[1.0.0].
    - Conclusion: don't install psr/log 1.0.0


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

This is my composer.json file:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "repositories": [ { "type": "composer", "url": "http://php-repo.foticos.com" } ],
    "require": {
        "php": ">=5.5.9",
        "laravel/framework": "5.3.*",
        "foticos/foti_api_client": "*@dev",        
        "foticos/laravel_foti_api": "*@dev",
        "foticos/laravel_foti_webutils": "*@dev",
        "barryvdh/laravel-debugbar" : "2.*",
        "predis/predis" : "~1.1@dev",
        "stripe/stripe-php": "^3.14",
        "guzzlehttp/guzzle": "~4.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "phpunit/phpunit": "~4.0",
        "phpspec/phpspec": "~2.1",
        "symfony/dom-crawler": "~3.0",
        "symfony/css-selector": "~3.0"
    },
    "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", 
        "secure-http"      : false
    }
}
  • 写回答

2条回答 默认 最新

  • dspvin19712 2016-11-29 06:19
    关注

    This is how I managed to install it:

    $ composer require psr/log 1.0.0
    
    $ composer require paypal/rest-api-sdk-php 1.7.*
    
    $ composer require sger/laravel-paypal 0.1.0
    

    Note:

    • paypal/rest-api-sdk-php 1.7.* requires psr/log 1.0.0 -> satisfiable by psr/log[1.0.0]
    • sger/laravel-paypal 0.1 requires paypal/rest-api-sdk-php 1.7.*
    评论

报告相同问题?

悬赏问题

  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制