mailgun / mailgun-php

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

Clarify effects of using php-http/discovery #889

Open igorsantos07 opened 8 months ago

igorsantos07 commented 8 months ago

I got into several trouble trying to cleanup our project's dependency file, which is quite big. Turns out, after several hoops and loops, I understood that Mailgun forces a peer dependency for HTTP work - that's not clear since the dependency gets forced into our root require, Composer doesn't allow proper comments, and composer why can't help either.

I suggested them to output the plugin effects (https://github.com/php-http/discovery/issues/258), but Mailgun's README could be clearer as well. Instead of just saying "we need some extra packages; if you're in a hurry, just install those two", explain that there's a plugin which will force installation of some PSR implementation, even if it's not one of those you're suggesting.