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

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

jacobcyl/laravel-counter
========================

view and like counter

2.1.4(10y ago)1681MITPHP

Since May 31Pushed 10y ago2 watchersCompare

[ Source](https://github.com/jacobcyl/laravel-counter)[ Packagist](https://packagist.org/packages/jacobcyl/laravel-counter)[ RSS](/packages/jacobcyl-laravel-counter/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (13)Used By (0)

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

[](#installation)

```
composer require jacobcyl/view-counter:^2.0

```

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

[](#configuration)

add provider

```
    Jacobcyl\ViewCounter\ViewCounterServiceProvider::class,
```

publish config file and migration files

```
    php artisan vendor:publish
    php artisan migrate
```

add "use ViewCounterTrait;" to your model

```
    $model->view()
```

\##add schedule task edit app/Console/Kernel.php file's schedule method.add **counter:sync** command:

```
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('counter:sync')->dailyAt('23:50');
    }
```

> run **crontab -e** then add follow

```
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1

```

\##command synchronize data to the database

```
php artisan counter:sync

```

initialize view counter of specified model

```
php artisan counter:view product 100 --action=plus // the specified product increased by 100 views

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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

12

Last Release

3676d ago

Major Versions

1.1.1 → v2.0.02016-06-02

1.1.2 → 2.0.12016-06-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cbb3952a18af26031f23cc229cfc3b624181cd8015330da149d3d8e0c54c361?d=identicon)[jacobcyl](/maintainers/jacobcyl)

---

Top Contributors

[![jacobcyl](https://avatars.githubusercontent.com/u/906128?v=4)](https://github.com/jacobcyl "jacobcyl (19 commits)")

---

Tags

laravelcounterviews\_counterlaravel counter

### Embed Badge

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

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

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20518.8k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11258.1k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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