PHPackages                             jsamos/lafitbit - 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. jsamos/lafitbit

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

jsamos/lafitbit
===============

Laravel 4 Wrapper for fitbitphp package

1792[2 issues](https://github.com/jsamos/lafitbit/issues)[1 PRs](https://github.com/jsamos/lafitbit/pulls)PHP

Since Dec 16Pushed 11y ago2 watchersCompare

[ Source](https://github.com/jsamos/lafitbit)[ Packagist](https://packagist.org/packages/jsamos/lafitbit)[ RSS](/packages/jsamos-lafitbit/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

lafitbit
========

[](#lafitbit)

Laravel 4 Wrapper for [fitbitphp](http://github.com/popthestack/fitbitphp) package

Setup
=====

[](#setup)

composer.json

```
{
    "require": {
        "slender/auth": "dev-master"
    }
}

```

add service provider and facade to app/config/app.php

```
'providers' => array(
    ...
    'Jsamos\Lafitbit\LafitbitServiceProvider',
    ...
);

...

'aliases' => array(
    ...
    'Fitbit'		  => 'Jsamos\Lafitbit\Facades\Fitbit',
    ...
);

```

Usage
=====

[](#usage)

Each of the ApiGateways in the parent project are available through static methods

e.g. $factory-&gt;getUserGateway becomes Fitbit::user()

Example
=======

[](#example)

```
class FitbitController extends Controller {

	public function oauth()
	{

        $auth = Fitbit::authentication();
        $auth->initiateLogin();

	}

    public function authenticate()
    {
        $auth = Fitbit::authentication();
        $oauth_token = Input::get('oauth_token');
        $oauth_verifier = Input::get('oauth_verifier');
        $auth->authenticateUser($oauth_token, $oauth_verifier);

        if ($auth->isAuthorized()) {
            $profile = Fitbit::user()->getProfile();
            var_dump($profile);
        } else {
            echo 'Not connected.';
        }
    }

}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6ccd790a093507393f0178ecf21c76a57043727aa629fbf9ed4a66b9c6fd1db?d=identicon)[jsamos](/maintainers/jsamos)

---

Top Contributors

[![jsamos](https://avatars.githubusercontent.com/u/2480743?v=4)](https://github.com/jsamos "jsamos (16 commits)")

### Embed Badge

![Health badge](/badges/jsamos-lafitbit/health.svg)

```
[![Health](https://phpackages.com/badges/jsamos-lafitbit/health.svg)](https://phpackages.com/packages/jsamos-lafitbit)
```

###  Alternatives

[richardhj/contao-backup-manager

Wrapper extension for backup-manager.

1412.9k](/packages/richardhj-contao-backup-manager)

PHPackages © 2026

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