餘米嘗試加載塞PHP API類,但遇到錯誤致命錯誤:類「塞式」未找到
Fatal error: Class 'Aerospike' not found
我的代碼如下
<?php
require "vendor/autoload.php";
$config = [
"hosts" => [
[ "addr" => "127.0.0.1", "port" => 3000]
]
];
// The new client will connect and learn the cluster layout
$db = new Aerospike($config);
我在做作曲家安裝和作曲家更新什麼錯了?如果你需要更多的文件來顯示告訴我。
您可能需要引用類的完整名稱空間。 – phaberest
Aerospike告訴:http://www.aerospike.com/docs/client/php/ – rad11
我想你使用作曲家安裝它,你是否執行其他命令? – phaberest