[英]Installing Shippo PHP Manually
有沒有辦法在沒有 Composer 或 Laravel 的情況下手動安裝 Shippo PHP 文件?
我手動上傳了文件,但在運行示例時出現錯誤:
警告:require_once(/var/www/html/shippo/examples../../vendor/autoload.php):無法打開流:沒有這樣的文件或目錄。
我不熟悉 Composer 或 Laravel,並且無法讓 Composer 工作。
Shippo.php 內部有對 cURL、JSON 和 mbstring 的測試,所以不用擔心。
// 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.');
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.