Exemple d’implémentation #1 :

<?php
/**
 * @name example1.php
 * @author Alexandre JULIEN
 * @tutorial <http://www.alexandre-julien.com>
 * @package PhoogleMap
 * @license GNU / GPL / MIT
 * @copyright 2009 Alexandre JULIEN
 */

// Class inclusion
require_once ('PhoogleMap.php');

// Example of an API Key for localhost
$api_key = 'ABQIAAAAxeqHVjOwgoEa8SCu8pyplhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQfyUjanfp4yx1js-4319L-qJqCTg';

 // Instanciation of a new map
 $map = new PhoogleMap($api_key);

 // Dimension of the map 640X480
  // Dimension of the map 800 x 600
  $map->setWidth(640);
  $map->setHeight(480);

 // Adding address
 $map->addAddress("Tour Eiffel", "Eiffel Tower");
?>

 <html>
 	<head>
 		<?php
			// add Js Code for use Google Map Api
	 		echo $map->printGoogleJS()
		?>
	 </head>
	<body>
		<?php
			// Print the map
			echo $map->showMap();
 		?>
 </body>
 </html>

Exemple d’implémentation #2 :

<?php
/**
 * @name example2.php
 * @author Alexandre JULIEN
 * @tutorial <http://www.alexandre-julien.com>
 * @package PhoogleMap
 * @license GNU / GPL / MIT
 * @copyright 2009 Alexandre JULIEN
 */

// Class inclusion
require_once ('PhoogleMap.php');

// Example of an API Key for localhost
$api_key = 'ABQIAAAAxeqHVjOwgoEa8SCu8pyplhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQfyUjanfp4yx1js-4319L-qJqCTg';

 // Instanciation of a new map
 $map = new PhoogleMap($api_key);

 // Dimension of the map 800 x 600
  $map->setWidth(800);
  $map->setHeight(600);

 // Adding address with an HTML Popup
 $map->addAddress("Tour Eiffel", "Eiffel Tower", "<h1> Eiffel Tower </h1> The great tower !");

 // Enable OpenWindowInformation
 $map->enableOpenWindowInformation();

 // Set action OpenWindowOnClick
 $map->setActionClick(array ('type' => 'windowinformation'));

 // Disable the controle map type
 $map->setShowType(false);

 // Add a 3d map control
 $map->addControlType('large3d');

?>

 <html>
 	<head>
 		<?php
			// add Js Code for use Google Map Api
	 		echo $map->printGoogleJS()
		?>
	 </head>
	<body>
		<?php
			// Print the map
			echo $map->showMap();
 		?>
 </body>
 </html>