PHPackages                             teamteatime/laravel-counter - 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. teamteatime/laravel-counter

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

teamteatime/laravel-counter
===========================

A Laravel 5 package providing counting functionality on models, such as view counters or 'likes'.

649PHP

Since Oct 27Pushed 10y ago3 watchersCompare

[ Source](https://github.com/Team-Tea-Time/laravel-counter)[ Packagist](https://packagist.org/packages/teamteatime/laravel-counter)[ RSS](/packages/teamteatime-laravel-counter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

**Note: this package is under active development. While it should be completely functional, caution is advised and you might wish to wait until the first release is pushed out. Until then, things are likely to change and possibly break as features are added or altered.**

If you encounter any issues or have a suggestion, please [create an issue](https://github.com/Team-Tea-Time/laravel-counter/issues/new).

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

[](#installation)

### Step 1: Install the package

[](#step-1-install-the-package)

Add the package to your composer.json and run `composer update`:

```
"teamteatime/laravel-counter": "dev-master"

```

Add the service provider to your `config/app.php`:

```
'TeamTeaTime\Counter\CounterServiceProvider',
```

> If your app defines a catch-all route, make sure you load this service provider before your app service providers.

### Step 2: Publish the package files

[](#step-2-publish-the-package-files)

Run the vendor:publish command to publish Filer's migrations:

`php artisan vendor:publish`

### Step 3: Update your database

[](#step-3-update-your-database)

Run your migrations:

`php artisan migrate`

### Step 4: Update your models

[](#step-4-update-your-models)

Add counter support to your models by using the HasCounters trait:

```
class ... extends Eloquent {
    use \TeamTeaTime\Counter\HasCounters;
}
```

Configuration
-------------

[](#configuration)

Filer requires no configuration out of the box in most cases, but the following options are available to you in `config/counter.php`:

OptionTypeDescriptionDefaultuserArrayThe name of your app's User model, and a closure to return the user ID. These are used to associate counter activity with users.auth()-&gt;user()-&gt;id or 0Usage
-----

[](#usage)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

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/2597f35fc9c6ae22401a9e6ab8794283b43a4fb951c073f704c0909d95ca5bd2?d=identicon)[Riari](/maintainers/Riari)

---

Top Contributors

[![MatissJanis](https://avatars.githubusercontent.com/u/886567?v=4)](https://github.com/MatissJanis "MatissJanis (3 commits)")

### Embed Badge

![Health badge](/badges/teamteatime-laravel-counter/health.svg)

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

###  Alternatives

[ghunti/highcharts-php

A php wrapper for highcharts and highstock javascript libraries

3772.3M5](/packages/ghunti-highcharts-php)[kra8/laravel-snowflake

Snowflake for Laravel and Lumen.

188402.3k6](/packages/kra8-laravel-snowflake)[mageplaza/magento-2-blog-extension

Magento 2 Blog extension

123708.2k5](/packages/mageplaza-magento-2-blog-extension)[werneckbh/laravel-qr-code

QR Code Generator for PHP wrapper for Laravel

90587.8k](/packages/werneckbh-laravel-qr-code)[leth/ip-address

IPv4 and IPv6 address and subnet classes with awesome utility functions.

62716.6k3](/packages/leth-ip-address)[samdark/hydrator

Allows to extract data from an object or create a new object based on data for the purpose of persisting state. Works with private and protected properties.

11476.9k](/packages/samdark-hydrator)

PHPackages © 2026

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