Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Class 'NexmoMessage' not found #26

Open
ethpran opened this issue Feb 7, 2015 · 0 comments
Open

Fatal error: Class 'NexmoMessage' not found #26

ethpran opened this issue Feb 7, 2015 · 0 comments

Comments

@ethpran
Copy link

ethpran commented Feb 7, 2015

Not sure why I'm getting this. I'm not a pro with composer, but I included this package like so:

"require" : {
"prawnsalad/nexmo": "dev-master"
}

The package gets built in my vendor folder no problem, but when I try running:

require 'vendor/autoload.php';
$sms = new NexmoMessage(NEXMO_KEY, NEXMO_SECRET);
$sms->sendText($phone, "app", "yo");

I get the error: Fatal error: Class 'NexmoMessage' not found. Any idea why this could be? I also tried explicitly use NexmoMessage, but that didn't work either. Thanks

SvenRtbg added a commit to SvenRtbg/Nexmo-PHP-lib that referenced this issue Feb 7, 2015
PSR-4 can only work if you use PHP namespaces.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant