PHPackages                             owenvoke/laravel-dashboard-google-fit-tile - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. owenvoke/laravel-dashboard-google-fit-tile

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

owenvoke/laravel-dashboard-google-fit-tile
==========================================

A tile for Laravel Dashboard that displays statistics from Google Fit

v2.0.0(5y ago)629[1 issues](https://github.com/owenvoke/laravel-dashboard-google-fit-tile/issues)MITPHPPHP ^7.4

Since May 1Pushed 5y ago2 watchersCompare

[ Source](https://github.com/owenvoke/laravel-dashboard-google-fit-tile)[ Packagist](https://packagist.org/packages/owenvoke/laravel-dashboard-google-fit-tile)[ Fund](https://offset.earth/owenvoke?gift-trees)[ GitHub Sponsors](https://github.com/owenvoke)[ RSS](/packages/owenvoke-laravel-dashboard-google-fit-tile/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Google Fit Tile
===============

[](#google-fit-tile)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c35a3f8f0d407949df22b4b3e299a3da4d309d65fd66ee1d8b22df79142651b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f77656e766f6b652f6c61726176656c2d64617368626f6172642d676f6f676c652d6669742d74696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owenvoke/laravel-dashboard-google-fit-tile)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/be7725bb97883ab2e98414b6733ca7cca74cec52e0b5b7e23a251df1a219d521/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6f77656e766f6b652f6c61726176656c2d64617368626f6172642d676f6f676c652d6669742d74696c652f436f6e74696e756f7573253230496e746567726174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/owenvoke/laravel-dashboard-google-fit-tile/actions)[![Style CI](https://camo.githubusercontent.com/3b27e12878d3e6eba6bb6b2550078341776cbc835015f959de0e591406431433/68747470733a2f2f7374796c6563692e696f2f7265706f732f3236303431333436312f736869656c64)](https://styleci.io/repos/260413461)[![Total Downloads](https://camo.githubusercontent.com/3666a0410297afa07485f30052b709bc98384a967b1d527a237b17df4a1a395b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f77656e766f6b652f6c61726176656c2d64617368626f6172642d676f6f676c652d6669742d74696c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/owenvoke/laravel-dashboard-google-fit-tile)[![Buy us a tree](https://camo.githubusercontent.com/910e097fe46a40add8f3484705ecbc26dc047df84b2fef027405f47408023d76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e3f7374796c653d666c61742d737175617265)](https://offset.earth/owenvoke?gift-trees)

A tile for Laravel Dashboard that displays statistics from Google Fit

Install
-------

[](#install)

Via Composer

```
$ composer require owenvoke/laravel-dashboard-google-fit-tile
```

Usage
-----

[](#usage)

In the `dashboard` config file, you must add this configuration in the `tiles` key.

```
// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'google_fit' => [
            'id' => env('GOOGLE_FIT_ID'),
            'secret' => env('GOOGLE_FIT_SECRET'),
        ],
    ],
];
```

In `app\Console\Kernel.php` you should schedule the `OwenVoke\GoogleFitTile\Commands\RefreshGoogleFitTokenCommand` to run every `30` minutes.

If you want step count data, set the `OwenVoke\GoogleFitTile\Commands\FetchGoogleFitStepCountCommand` to run every `x` minutes as well.

If you want sleep data, set the `OwenVoke\GoogleFitTile\Commands\FetchGoogleFitSleepCommand` to run every `x` minutes as well.

```
// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    $schedule->command(\OwenVoke\GoogleFitTile\Commands\RefreshGoogleFitTokenCommand::class)->everyThirtyMinutes();

    // Data fetching commands
    $schedule->command(\OwenVoke\GoogleFitTile\Commands\FetchGoogleFitStepCountCommand::class)->everyTenMinutes();
    $schedule->command(\OwenVoke\GoogleFitTile\Commands\FetchGoogleFitSleepCommand::class)->everyTenMinutes();
}
```

In your dashboard view you use the `livewire:google-fit-tile` component.

```

```

**Generate Google Fit credentials**

1. Create a Google project and generate [API Credentials](https://console.developers.google.com/apis/credentials)
2. Click the "Authorize APIs" button on Google's [OAuth Playground](https://developers.google.com/oauthplayground/#step1&apisSelect=https://www.googleapis.com/auth/fitness.activity.read)
3. Click the "Exchange authorization code for tokens" button
4. Copy the JSON (with `access_token`/`refresh_token`) from the bottom right panel
5. Add this to a JSON file in `storage/app/google/fit-credentials.json`
6. Run the `artisan dashboard:refresh-google-fit-token` command manually to validate the configuration

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Owen Voke](https://github.com/owenvoke)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Treeware
--------

[](#treeware)

You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees [here](https://offset.earth/owenvoke?gift-trees).

Read more about Treeware at [treeware.earth](https://treeware.earth).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~134 days

Total

2

Last Release

2071d ago

Major Versions

v1.0.0 → v2.0.02020-09-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (12 commits)")[![vinevax](https://avatars.githubusercontent.com/u/26968185?v=4)](https://github.com/vinevax "vinevax (1 commits)")

---

Tags

laravellaravel-dashboardlaravel-dashboard-tilephp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/owenvoke-laravel-dashboard-google-fit-tile/health.svg)

```
[![Health](https://phpackages.com/badges/owenvoke-laravel-dashboard-google-fit-tile/health.svg)](https://phpackages.com/packages/owenvoke-laravel-dashboard-google-fit-tile)
```

###  Alternatives

[spatie/laravel-google-calendar

Manage events on a Google Calendar

1.4k1.5M21](/packages/spatie-laravel-google-calendar)[tomatophp/filament-seo

Manage and generate SEO tags and integrate your website with Google SEO services

112.6k1](/packages/tomatophp-filament-seo)

PHPackages © 2026

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