mailgun / mailgun-php

Mailgun's Official SDK for PHP
http://www.mailgun.com
MIT License
1.1k stars 314 forks source link

Installation failed php composer.phar require mailgun/mailgun-php php-http/guzzle6-adapter php-http/message #661

Closed trungkhtn closed 4 years ago

trungkhtn commented 4 years ago

Please help me!

php composer.phar require mailgun/mailgun-php php-http/guzzle6-adapter php-http/message Using version ^3.0@dev for mailgun/mailgun-php Using version ^2.0@dev for php-http/guzzle6-adapter Using version ^1.8@dev for php-http/message ./composer.json has been updated 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

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

PHP 7.1 OS: CENTOS7

DavidGarciaCat commented 4 years ago

Hi, @trungkhtn

It looks like your composer loads beta versions. I would try using the stable ones as my first attempt to fix this issue.

Also, one of your dependencies is for yarcode/yii2-mailgun-mailer. However, according to this repo, the supported version of Mailgun PHP Client is v2 instead of v3, meaning that this can cause a conflict that is beyond our control.

Cheers,

khoipro commented 4 years ago

@trungkhtn try my code. It works as expected, but it seems the current document in README.md is missing.

https://gist.github.com/khoipro/92d2f91920c58f0e6f1c8f8444e77db7

DavidGarciaCat commented 4 years ago

Closing this issue due to inactivity, as well as due to the provided Gist link seems not to be available anymore.