PHPackages                             mrkriskrisu/google-fit-to-cal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. mrkriskrisu/google-fit-to-cal

AbandonedArchivedLibrary[File &amp; Storage](/categories/file-storage)

mrkriskrisu/google-fit-to-cal
=============================

Library to generate an ics calendar file from Google Fit Activities

0.2(5y ago)02MITPHPPHP ^7.1

Since Sep 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/MrKrisKrisu/GoogleFitToCal)[ Packagist](https://packagist.org/packages/mrkriskrisu/google-fit-to-cal)[ RSS](/packages/mrkriskrisu-google-fit-to-cal/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Google Fit to ics (Calendar)
============================

[](#google-fit-to-ics-calendar)

[![Codacy Badge](https://camo.githubusercontent.com/21ea203e30003ea8eb1f82867611b562d893202a556705c0cc3ca12a80a372ec/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3032633738643233666236333437396138636464656435306238383761363966)](https://www.codacy.com/manual/MrKrisKrisu/GoogleFitToCal?utm_source=github.com&utm_medium=referral&utm_content=MrKrisKrisu/GoogleFitToCal&utm_campaign=Badge_Grade)

This library will retrieve the latest activities (e.g. sleep, jogging, ...) from Google Fit and returnes an iCalendar, so you can embed them to your Calendar.

Example output
--------------

[](#example-output)

```
BEGIN:VCALENDAR
VERSION:2.0
PRODID:k118.de
BEGIN:VEVENT
UID:5f60602545786
DTSTART:20200820T190620Z
SEQUENCE:0
TRANSP:OPAQUE
DTEND:20200820T192025Z
SUMMARY:Evening jog
CLASS:PUBLIC
DTSTAMP:20200915T063309Z
END:VEVENT
BEGIN:VEVENT
UID:5f60602545813
DTSTART:20200821T123715Z
SEQUENCE:0
TRANSP:OPAQUE
DTEND:20200821T142221Z
SUMMARY:Sleep
CLASS:PUBLIC
DTSTAMP:20200915T063309Z
END:VEVENT
END:VCALENDAR
```

Installation
------------

[](#installation)

`composer require mrkriskrisu/google-fit-to-ics`

Requirements
------------

[](#requirements)

- PHP 7.0
- PHP JSON Extension
- Composer

To retrieve the data you'll also need the Bearer Token for the Google Account you want to access.

Example
-------

[](#example)

```
use GoogleFitToCal\GoogleFitToCal;

require_once '../vendor/autoload.php';

$fitToCal = new GoogleFitToCal('ya29.TOKEN');
$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);
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2118d ago

PHP version history (2 changes)0.1PHP ^7.0

0.2PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4103693?v=4)[Kris](/maintainers/MrKrisKrisu)[@MrKrisKrisu](https://github.com/MrKrisKrisu)

---

Top Contributors

[![MrKrisKrisu](https://avatars.githubusercontent.com/u/4103693?v=4)](https://github.com/MrKrisKrisu "MrKrisKrisu (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrkriskrisu-google-fit-to-cal/health.svg)

```
[![Health](https://phpackages.com/badges/mrkriskrisu-google-fit-to-cal/health.svg)](https://phpackages.com/packages/mrkriskrisu-google-fit-to-cal)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M988](/packages/statamic-cms)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
