0
我是使用composer包的新手。我有幾個工作,但我遇到了一個我想使用的Google地圖包,我無法正確加載它。無法加載Composer包
我在使用包的嘗試:
<?php
require './vendor/autoload.php';
use \PHPGoogleMaps\Service\Geocoder;
use \PHPGoogleMaps\Service\GeocodeError;
use \PHPGoogleMaps\Service\GeocodeResult;
use \PHPGoogleMaps\Service\GeocodeException;
$map = new \PHPGoogleMaps\Map;
// Rest of GMap code goes here...
?>
這失敗的消息Class 'PHPGoogleMaps\Map' not found
composer.json文件:
{
"require" : {
"nategood/httpful":"*",
"nesbot/carbon": "dev-master",
"php-google-maps/php-google-maps": "dev-master"
}
}
顯示'composer.json'的內容 – KingCrunch