PHPackages                             diegorivas89/laravel-stathat - 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. diegorivas89/laravel-stathat

ActiveLibrary

diegorivas89/laravel-stathat
============================

Laravel 4.2 integration for the Stathat API

09PHP

Since May 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/diegorivas89/laravel-stathat-wrapper)[ Packagist](https://packagist.org/packages/diegorivas89/laravel-stathat)[ RSS](/packages/diegorivas89-laravel-stathat/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Stathat wrapper for Laravel 4
=============================

[](#stathat-wrapper-for-laravel-4)

[![Build Status](https://camo.githubusercontent.com/2f4cded00139d2b862f58beab4d044be8a5a430c67594fdba77ffe92a533ef10/68747470733a2f2f7472617669732d63692e6f72672f646965676f726976617338392f6c61726176656c2d737461746861742d777261707065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/diegorivas89/laravel-stathat-wrapper)[![License](https://camo.githubusercontent.com/aaee7519ef85e08dd3f43e7a640e8f11a7d8a63c113495625b4536f5bcc891b7/68747470733a2f2f706f7365722e707567782e6f72672f646965676f726976617338392f6c61726176656c2d737461746861742f6c6963656e7365)](https://packagist.org/packages/diegorivas89/laravel-stathat)

Laravel 4 integration for the Stathat API

### Requeriments

[](#requeriments)

- `php >= 5.4`
- `illuminate/support: 4.2.*`

### Installation

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `diegorivas89/stathat-laravel`.

```
"require": {
	"diegorivas89/stathat-laravel": "dev-master"
}

```

Next, update Composer from the Terminal:

```
composer update

```

Once this operation completes, add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
'Stathat\StathatServiceProvider'

```

Also you can add the facade accesor to the end of `aliases` key in `app/config/app.php`

```
'Stathat' => 'Stathat\Facades\StathatEz'

```

or if you want to use the classic api

```
'Stathat' => 'Stathat\Facades\StathatClassic'

```

The final step is publish the config file. For this, run

```
php artisan config:publish

```

### Configuration

[](#configuration)

In the published file you must set your credentials, this is the `user_key` and the `email` depending on the type of api you will use.

### Usage

[](#usage)

```
Stathat::count('page_views'); // default value is 1
Stathat::count('page_views', 2);
Stathat::value('revenue', 17);

```

or if you have to have to use more than one account of stathat, you could do:

```
Stathat::count('page_views', 1); // default account from config
Stathat::count('page_views', 1, 'first.account@email.com');
Stathat::count('page_views', 1, 'second.account@email.com');

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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.

### Community

Maintainers

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

---

Top Contributors

[![diegorivas89](https://avatars.githubusercontent.com/u/1580849?v=4)](https://github.com/diegorivas89 "diegorivas89 (36 commits)")

### Embed Badge

![Health badge](/badges/diegorivas89-laravel-stathat/health.svg)

```
[![Health](https://phpackages.com/badges/diegorivas89-laravel-stathat/health.svg)](https://phpackages.com/packages/diegorivas89-laravel-stathat)
```

PHPackages © 2026

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