composerパッケージを使用するのは初めてです。いくつか動作するようになりましたが、使用したい Google マップ パッケージを見つけたのですが、適切に読み込むことができません。
パッケージを使用する私の試み:
<?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"
}
}