galen/PHP-Instagram-API

Not working with composer

Closed this issue · 4 comments

Fatal error: Class 'Instagram\Instagram' not found...

Composer's autoload_namespaces is generating:

'Instagram' => $vendorDir . '/php-instagram-api/php-instagram-api/Instagram',

and should instead read:

'Instagram' => $vendorDir . '/php-instagram-api/php-instagram-api/.',

I got another error when trying to use it with composer, thats probably related.

Fatal error: Class 'Instagram\Core\BaseObjectAbstract' not found in [...]/vendor/php-instagram-api/php-instagram-api/Instagram/Instagram.php on line 27

I havent actually used it with composer yet. Ill look into this.

@orre It's because the base class path is being set incorrectly by composer's generator.

@galen I believe is should be as simple as changing psr-0 autoload information to "Instagram": "."

I can confirm this issue.
The solution from @fishmarket should solve it.