PayumBundleSandbox icon indicating copy to clipboard operation
PayumBundleSandbox copied to clipboard

Composer requirements

Open winzou opened this issue 7 years ago • 4 comments

Hi,

The current composer requirements make it annoying to install:

$ composer create-project payum/payum-bundle-sandbox payum-sandbox
Installing payum/payum-bundle-sandbox (0.10.0)
  - Installing payum/payum-bundle-sandbox (0.10.0): Downloading (100%)
Created project in payum-sandbox
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for authorizenet/authorizenet 1.8.3.3 -> satisfiable by authorizenet/authorizenet[1.8.3.3].
    - authorizenet/authorizenet 1.8.3.3 requires php ~5.3 -> your PHP version (7.0.0) does not satisfy that requirement.
  Problem 2
    - Installation request for doctrine/mongodb 1.3.0 -> satisfiable by doctrine/mongodb[1.3.0].
    - doctrine/mongodb 1.3.0 requires ext-mongo ^1.5 -> the requested PHP extension mongo is missing from your system.
  Problem 3
    - doctrine/mongodb 1.3.0 requires ext-mongo ^1.5 -> the requested PHP extension mongo is missing from your system.
    - doctrine/mongodb-odm 1.1.1 requires doctrine/mongodb ~1.3 -> satisfiable by doctrine/mongodb[1.3.0].
    - Installation request for doctrine/mongodb-odm 1.1.1 -> satisfiable by doctrine/mongodb-odm[1.1.1].

  To enable extensions, verify that they are enabled in your .ini files:
    - C:\wamp\bin\php\php7.0.0\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Is MongoDB mandatory to use the sandbox?

Thanks!

winzou avatar Jul 17 '17 19:07 winzou

The sandox was created to manually test various things before a release. The mongodb is one of those things.

makasim avatar Jul 18 '17 04:07 makasim

I'd suggest using a docker-compose.yml which is in the project. You'll get a working sandbox without setting anything at all.

makasim avatar Jul 18 '17 04:07 makasim

Thanks Maksim, finally I managed to easily remove the conflicting requirements and config. I'm working on the Asian gateway 2c2p, will publish it soon ;)

winzou avatar Jul 19 '17 07:07 winzou

How to workaround it composer config "platform.ext-mongo" "1.6.16" && composer require alcaeus/mongo-php-adapter

brucepc avatar Dec 21 '17 14:12 brucepc