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. mrkriskrisu/google-fit-to-cal

AbandonedArchivedLibrary

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 1mo ago

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 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

2066d ago

PHP version history (2 changes)0.1PHP ^7.0

0.2PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/743b006b0da12b0b2f6dbd7db63d8eaa43c7c0921163aee7dc5487822f461c4d?d=identicon)[MrKrisKrisu](/maintainers/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.6k509.9M17.0k](/packages/laravel-framework)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[ashallendesign/laravel-exchange-rates

A wrapper package for interacting with the exchangeratesapi.io API.

485677.8k](/packages/ashallendesign-laravel-exchange-rates)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[concrete5/core

Concrete core subtree split

19159.3k48](/packages/concrete5-core)

PHPackages © 2026

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