PHP code example of designcise / bitframe-geolocation

1. Go to this page and download the library: Download designcise/bitframe-geolocation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

designcise / bitframe-geolocation example snippets


use \BitFrame\Locale\GeoLocation;
use \BitFrame\Locale\GeoLocationData;

t the http response from the middlewares, 
     * make sure you $loc = $request->getAttribute(GeoLocationData::class);

        $response->getBody()->write('<pre>' . print_r($loc, true) . '</pre>');

        return $response;
    }
]);