opennodedev / opennode-php

OpenNode PHP library for API v1
https://opennode.co/docs
MIT License
16 stars 5 forks source link

Doesn't work with composer #1

Open Falsen opened 5 years ago

Falsen commented 5 years ago

Using composer I got the following error: Fatal error: Class 'OpenNode\Unauthorized' not found in /root/www/lightning-flip/vendor/opennode/opennode-php/lib/Exception.php on line 31

However without composer there was no issue. I tried requiring the same library directly

require_once("/composer/opennode/opennode-php/init.php");

And it worked like a charm! Am I doing something wrong?

joaodealmeida commented 5 years ago

Thanks for the feedback. It looks like psr4 doesn't allow to have multiple classes in the same file. A fix is coming.

Meanwhile feel free to use it in the manual way.

Falsen commented 5 years ago

Great! Awesome library by the way!