[GH-ISSUE #134] How to install *without* composer? #81

Closed
opened 2026-02-27 19:25:56 +03:00 by kerem · 2 comments
Owner

Originally created by @pkiula on GitHub (Jul 23, 2018).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/134

For various reasons, we need to include the files without Composer etc. Just the code. Simple PHP. Where can I find the docs on how to just copy a folder, and include/require the right files? Not vendor/autoload.php but some actual file in the src. Thanks!

Originally created by @pkiula on GitHub (Jul 23, 2018). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/134 For various reasons, we need to include the files without Composer etc. Just the code. Simple PHP. Where can I find the docs on how to just copy a folder, and include/require the right files? Not `vendor/autoload.php` but some actual file in the src. Thanks!
kerem 2026-02-27 19:25:56 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jwilsson commented on GitHub (Jul 24, 2018):

Hi!
Installing without Composer isn't "officially" supported, but if wanna do it anyway you'll need to include every file in the src folder. Don't forget cacert.pem, just put that in the same folder as the rest and everything should work.

<!-- gh-comment-id:407314032 --> @jwilsson commented on GitHub (Jul 24, 2018): Hi! Installing without Composer isn't "officially" supported, but if wanna do it anyway you'll need to include every file in the `src` folder. Don't forget `cacert.pem`, just put that in the same folder as the rest and everything should work.
Author
Owner

@andersborgabiro commented on GitHub (Jul 24, 2018):

I did it this way:

A folder called "spotify" containing the includes and cacert.pem.

Referring to them via:

require 'spotify/SpotifyWebAPI.php';
require 'spotify/SpotifyWebAPIException.php';
require 'spotify/Request.php';
require 'spotify/Session.php';
<!-- gh-comment-id:407323197 --> @andersborgabiro commented on GitHub (Jul 24, 2018): I did it this way: A folder called "spotify" containing the includes and cacert.pem. Referring to them via: require 'spotify/SpotifyWebAPI.php'; require 'spotify/SpotifyWebAPIException.php'; require 'spotify/Request.php'; require 'spotify/Session.php';
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#81
No description provided.