2017 © Pedro Peláez
 

library gmaps-api-sign-url

Sign Google Static Maps API Urls. No dependency.

image

bentools/gmaps-api-sign-url

Sign Google Static Maps API Urls. No dependency.

  • Thursday, July 26, 2018
  • by bpolaszek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Latest Stable Version License Build Status Coverage Status Quality Score Total Downloads, (*1)

Google Static Maps API Url Signer

Yes, it's a long name for such a simple library. When you use Google Static maps API, your key can be stolen if you don't sign your Urls., (*2)

Retrieve your secret key in your Google cloud Dashboard: APIs > Maps Static API > Url signing secret., (*3)

Installation

composer require bentools/gmaps-api-sign-url, (*4)

Tests

./vendor/bin/phpunit, (*5)

Usage

use BenTools\GmapsApiSigner\GmapsUrlSigner;

$secretKey = 'google_api_signing_secret';
$sign = new GmapsUrlSigner($secretKey);
<html>
<body>
<script src="<?=$sign('https://maps.googleapis.com/maps/api/js?key=api_key')?>"></script>
</body>
</html>

The Versions

26/07 2018

dev-master

9999999-dev

Sign Google Static Maps API Urls. No dependency.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

26/07 2018

1.0

1.0.0.0

Sign Google Static Maps API Urls. No dependency.

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires