mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #220] Having problems setting up spotify api with composer #155
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#155
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ericlove02 on GitHub (Jan 27, 2021).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/220
I am trying to connect the Spotify Web api to my project, and I thought I had done so but am getting this error:
Fatal error: Uncaught Error: Class 'SpotifyWebAPI\SpotifyWebAPI' not found in D:\wamp64\www\app.php on line 4
Whenever I try to install the package with 'composer require jwilsson/spotify-web-api-php' I get this error:
The package name composer require jwilsson/spotify-web-api-php is invalid, it should be lowercase and have a vendor name, a forward slash, and a package name, matching: [a-z0-9_.-]+/[a-z0-9_.-]+
I'm trying to install it on a project on a WAMP server, so I'm not sure if that is what is causing my problem or not. This is my first time using composer, so I may be doing something wrong.
@jwilsson commented on GitHub (Jan 27, 2021):
Hey!
That's a strange error from Composer. What is the exact command you're running?
@ericlove02 commented on GitHub (Jan 28, 2021):
I think I actually got it working. I think there was an issue with the compser.json file. I deleted it and ran composer require jwilsson/spotify-web-api-php and it seems to be working!