opennode-php icon indicating copy to clipboard operation
opennode-php copied to clipboard

Doesn't work with composer

Open Falsen opened this issue 5 years ago • 2 comments

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?

Falsen avatar Dec 07 '18 13:12 Falsen

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.

joaodealmeida avatar Dec 08 '18 21:12 joaodealmeida

Great! Awesome library by the way!

Falsen avatar Dec 08 '18 23:12 Falsen