PHP code example of wyndow / teazee

1. Go to this page and download the library: Download wyndow/teazee 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/ */

    

wyndow / teazee example snippets


$teazee = new Teazee\Provider\GoogleMaps(null, $client, $messageFactory);

$teazee = new Teazee\Provider\GoogleMaps($apiKey, $client, $messageFactory);

$teazee = new Teazee\Provider\TimezoneDb($apiKey, $client, $messageFactory);

$iAmVIP = true;
$teazee = new Teazee\Provider\TimezoneDb($apiKey, $iAmVIP, $client, $messageFactory);

$googleMaps = new Teazee\Provider\GoogleMaps($apiKey, $client, $messageFactory);
$timezoneDb = new Teazee\Provider\TimezoneDb($apiKey, $isPremium, $client, $messageFactory);
$teazee = new Teazee\Provider\Chain([$googleMaps, $timezoneDb]);
$zone = $teazee->find($lat, $lng);

$provider = new Teazee\Provider\TimezoneDb($apiKey); // Client and MessageFactory will be created for you!