bcosca / fatfree

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!
2.66k stars 446 forks source link

Google Static Maps - is this still a feature? #1271

Open meljturner opened 1 year ago

meljturner commented 1 year ago

Just experimenting with the static-map class and ran into 2 problems:

  1. the example in the documentation uses parse_str to parse the url parameters. For php 8 this requires two parameters (mandatory).
  2. Google complains there is no authentication key. I can obtain a key but how is this specified in F3?

(This is not critical; I am just experimenting. I am using F3 extensively for my APIs; an excellent lightweight framework)

pauljherring commented 1 year ago

I can obtain a key but how is this specified in F3?

$map->key('YOUR_API_KEY');