[GH-ISSUE #47] composer #27

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

Originally created by @ghost on GitHub (Jun 4, 2016).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/47

i cant use composer in my pc so that vendor/autoload.php is not works for me what is the alternative way to use sdk without that? Thanks

Originally created by @ghost on GitHub (Jun 4, 2016). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/47 i cant use composer in my pc so that vendor/autoload.php is not works for me what is the alternative way to use sdk without that? Thanks
kerem 2026-02-27 19:25:41 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jwilsson commented on GitHub (Jun 6, 2016):

Well, the easiest way is to just include all the required files:

require_once 'path/to/spotify-web-api-php/Request.php';
require_once 'path/to/spotify-web-api-php/Session.php';
require_once 'path/to/spotify-web-api-php/SpotifyWebAPI.php';
require_once 'path/to/spotify-web-api-php/SpotifyWebAPIException.php';

The second way involves creating your own autoloader, take a look at the docs for spl_autoload_register() on how to create something that suits your needs.

<!-- gh-comment-id:223933539 --> @jwilsson commented on GitHub (Jun 6, 2016): Well, the easiest way is to just include all the required files: ``` php require_once 'path/to/spotify-web-api-php/Request.php'; require_once 'path/to/spotify-web-api-php/Session.php'; require_once 'path/to/spotify-web-api-php/SpotifyWebAPI.php'; require_once 'path/to/spotify-web-api-php/SpotifyWebAPIException.php'; ``` The second way involves creating your own autoloader, take a look at the docs for [spl_autoload_register()](http://php.net/manual/en/function.spl-autoload-register.php) on how to create something that suits your needs.
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#27
No description provided.