Sortie du snippet Symfony "Utilisation de l'API ipstack"

Environement :

  • Strangebuzz Snippet VM : 2.2.1
  • Symfony : 5.1.3

Sortie du code exécuté :

Array
(
    [ip] => 34.200.243.114
    [type] => ipv4
    [continent_code] => NA
    [continent_name] => Amérique du Nord
    [country_code] => US
    [country_name] => États-Unis
    [region_code] => VA
    [region_name] => Virginie
    [city] => Ashburn
    [zip] => 20147
    [latitude] => 39.043701171875
    [longitude] => -77.474197387695
    [location] => Array
        (
            [geoname_id] => 4744870
            [capital] => Washington D.C.
            [languages] => Array
                (
                    [0] => Array
                        (
                            [code] => en
                            [name] => English
                            [native] => English
                        )

                )

            [country_flag] => https://assets.ipstack.com/flags/us.svg
            [country_flag_emoji] => 🇺🇸
            [country_flag_emoji_unicode] => U+1F1FA U+1F1F8
            [calling_code] => 1
            [is_eu] => 
        )

    [time_zone] => Array
        (
            [id] => America/New_York
            [current_time] => 2020-08-03T13:19:37-04:00
            [gmt_offset] => -14400
            [code] => EDT
            [is_daylight_saving] => 1
        )

    [currency] => Array
        (
            [code] => USD
            [name] => US Dollar
            [plural] => US dollars
            [symbol] => $
            [symbol_native] => $
        )

    [connection] => Array
        (
            [asn] => 14618
            [isp] => amazon.com Inc.
        )

)