PHP code example of pwsdotru / worldtides-client

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

    

pwsdotru / worldtides-client example snippets


use Worldtides\API;

$tides = new API('apikey');

$tides->setDate(date("Y-m-d"))
    ->setPoint("7.8333", "98.4167");

$heights = $tides->$tides->getHeights(7);

use Worldtides\API;

$tides = new API('apikey');

$tides->setDate(date("Y-m-d"))
    ->setPoint("7.8333", "98.4167");

$img = $tides->$tides->getImage(7);