Installing Shippo PHP Manually

Viewed 299

Is there a way to install the Shippo PHP files manually without Composer or Laravel?

I uploaded the files manually, but I get an error when I run the examples:

Warning: require_once(/var/www/html/shippo/examples../../vendor/autoload.php): failed to open stream: No such file or directory.

I'm not familiar with Composer or Laravel and have not been able to get Composer to work.

2 Answers

Shippo.php has the tests for cURL, JSON and mbstring internally so don't worry about it.

// Tested on PHP 5.2, 5.3
if (!function_exists('curl_init')) {
    throw new Exception('Shippo needs the CURL PHP extension.');
}
if (!function_exists('json_decode')) {
    throw new Exception('Shippo needs the JSON PHP extension.');
}
if (!function_exists('mb_detect_encoding')) {
    throw new Exception('Shippo needs the Multibyte String PHP extension.');
}
Related