Is it possible to use your API without installing the SDK via composer and SSH? Is there a simple way to download it as a PHP library or multiple libraries and just use an include?
Hey, we
highly recommend using composer when doing PHP development and if you lack SSH access to a server (we also highly recommend not using shared hosting
) I'd recommend you run
composer install on your local machine and then upload the
vendor directory to your server.
Composer is the one of best things that happened to PHP in the recent years (eventhough it could be better), you should use it ;-)
With all the different classes in the SDK and it's dependencies (there are quite a few required for the crypto stuff) you really need to use the composer autoloader, however it can work side by side with any existing autoloaders you already have from your frameworks etc.
If you have a strong objection against running
composer install locally and then uploading those files to your server, we could try and package the SDK, the composer autoloader and it's deps as a ZIP and then you could download that
include the composer autoloader.
But the only difference from the first aproach is that we create a ZIP that you unpack and upload instead of you just running
composer install and upload the result.