Phoogle Back to Open Source Projects

A PHP Wrapper for the Google Maps API

Download From GitHub

Download

Donate

Phoogle Maps (pronounced like Foogle Maps) is a PHP class that integrates itself with the Google Maps API and with the Google Geocoding API to make an easy to use interface to display Google Maps on your site. With about 5 lines of PHP code you can display a customized Google Map on your website.

Example Showing Multiple Map Points

<?php
require_once 'phoogle.php';
$map = new PhoogleMap();
$map->setAPIKey("XXXXXX");
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <? $map->printGoogleJS(); ?>
   </head>
  <body>
  <?php
  $map->addAddress('208 Dingler Ave, Mooresville, NC 28115');
  $map->addAddress('210 Doster Ave, Mooresville, NC 28115');
  $map->addAddress('300 Dingler Ave, Mooresville, NC 28115');
  $map->showMap();
  ?>
    </body>
</html>