PHP code example of mrkriskrisu / google-fit-to-cal

1. Go to this page and download the library: Download mrkriskrisu/google-fit-to-cal 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/ */

    

mrkriskrisu / google-fit-to-cal example snippets

 php
use GoogleFitToCal\GoogleFitToCal;

OKEN');
$ics = $fitToCal->get('example.org');

echo strlen($ics) . " Bytes of your fitness data will be written to file googlefit.ics...";

$handle = fopen('googlefit.ics', 'w+');
fwrite($handle, $ics);
fclose($handle);