baibaratsky / php-mailgun

Mailgun API PHP library and Yii extension (as well as Yii2)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

where MailgunObject.php?

supgeek-rod opened this issue · comments

include(MailgunObject.php) [function.include]: failed to open stream: No such file or directory

It's in the end of MailgunApi.php, so you don't have to include it — just include MailgunApi.php if you aren't using Composer.

I have composer require mailgun/mailgun-php:~1.7.1, but I don't find MailgunApi.php file?

In this case you just have to require Composer's autoload.php.
You can find MailgunApi.php in vendor/baibaratsky/php-mailgun, but there's no need to include this file when using Composer.

I installed mailgun/mailgun-php, this is wrong?
Should be installed baibaratsky/php-mailgun,but errer:

[InvalidArgumentException]                                                                                                                               
Could not find package baibaratsky/php-mailgun at any version for your minimum-stability (stable). Check the package spelling or your minimum-stability  

mailgun/mailgun-php is another library I don't belong to.
As for baibaratsky/php-mailgun, try now please. I've made a stable version (v1.0).

MailgunOject interface is located in MailgunApi.php. I solved the issue by creating a new file MailgunObject.php and copying the MailgunOject interface to this file.

@xpelliarmus, this topic is about another problem. Rod tried to include another library into his project, so he had no MailgunApi.php file. Please describe your issue in separate topic. There is no need to create MailgunObject.php.