mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 16:05:51 +03:00
[GH-ISSUE #92] Using this API without Composer #48
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#48
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 @celsowhite on GitHub (Jul 10, 2017).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/92
Hi, I'd love to use this API just by installing the src files within my Wordpress theme. Getting composer setup with WP is a bit of a headache and I'd rather just include the files manually. Do you have recommendations for doing so?
Right now I'm doing:
@jwilsson commented on GitHub (Jul 10, 2017):
Hi!
I'd recommend using a autoloader but making sure you only include the classes for
SpotifyWebAPIwith that (in case some plugin are using autoloaders too).Quick, untested, example:
You might run in to some trouble with other plugins registrering autoloaders too, though.
Your approach will work (I highly doubt we'll add any new files in the near future, causing something to break) but I highly recommend you to use an autoloader.
Hope this works!
@celsowhite commented on GitHub (Jul 11, 2017):
Thanks @jwilsson! I'll give autoloader a try. My approach did end up working but I see the advantage of the autoloader.
Great wrapper. Thanks for the work.