Download the PHP package quexer69/php-google-api without Composer

On this page you can find all versions of the php package quexer69/php-google-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-google-api

PHP Google API

Latest Stable Version Total Downloads License

...for Google Map API v3, PHP >= 5.3.0, Yii 1.*

Configuration


in your app and/or console configuration file, add these

'components' => array(
    'googleMapApi'   => array(
            'class'             => 'vendor.quexer69.php-google-api.GoogleMapApi',
            /**
             * Google Maps Image and Geocode API settings
             */
            'staticmap_api_key' => '***************************************',
            'geocode_api_key'   => '***************************************',
            'map_type'          => 'terrain',
            'map_size'          => '520x350',
            'map_sensor'        => false,
            'map_zoom'          => 9,
            'map_scale'         => 1,
            'map_image_path'    => '/images/google_map',
            'map_marker_color'  => 'red',
            'map_iframe_width'  => '100%',
            'map_iframe_height' => '500', // in px
            'language'          => 'de',
            'quiet'             => false
    ),
    ...
),

Usage


Just type in an address string as you do on google maps!

$address              = '70180 Stuttgart, Germany';
$filePath             = Yii::app()->googleMapApi->createImage($address,null);

For query by latitude and longitude

$latlng               = '48.7632145,9.174027';
$filePath             = Yii::app()->googleMapApi->createImage(null, $latlng);

Calculate Distance between two geo points

$latlng_origin        = array('48.7632145,9.174027');
$latlng_destination   = array('48.4525334,9.468254');
$unit                 = 'miles' // or 'km'

$distance             = Yii::app()->googleMapApi->getDistance($latlng_origin, $latlng_destination, $unit);

Public Methods


public function getGoogleMapIframe($address, $latlng, $iFrameWidth, $iFrameHeight)

public function createImage($address, $latlng, $setMarker)

public function getGeoCodeObject($address, $latlng)

public function getDistance($start, $finish, $unit)

public static function getCountryByCode($short_country_code)


All versions of php-google-api with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
schmunk42/php-inflector Version 0.3.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package quexer69/php-google-api contains the following files

Loading the files please wait ....