[GH-ISSUE #257] using the wrapper without composer #186

Closed
opened 2026-02-27 19:26:30 +03:00 by kerem · 1 comment
Owner

Originally created by @humpataa on GitHub (Dec 23, 2022).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/257

I have downloaded and unzipped the code archive.
there is a folder src which has all the wrapper's class files (I guess).
how do I use it with plain simple PHP without composer.
please advise.
thank you.

Originally created by @humpataa on GitHub (Dec 23, 2022). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/257 I have downloaded and unzipped the code archive. there is a folder src which has all the wrapper's class files (I guess). how do I use it with plain simple PHP without composer. please advise. thank you.
kerem 2026-02-27 19:26:30 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jwilsson commented on GitHub (Dec 27, 2022):

Hey!
It's really not recommended to not use Composer or at least a PSR-4 compatible autoloader. But if you really want to, including all the files present in the src folder should do the trick:

require_once 'src/SpotifyWebAPI.php';
require_once 'src/Session.php`;
And so on...

Hope this helps!

<!-- gh-comment-id:1365688268 --> @jwilsson commented on GitHub (Dec 27, 2022): Hey! It's really not recommended to not use Composer or at least a PSR-4 compatible autoloader. But if you really want to, including all the files present in the `src` folder should do the trick: ```php require_once 'src/SpotifyWebAPI.php'; require_once 'src/Session.php`; And so on... ``` Hope this helps!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#186
No description provided.