PHPackages                             fof/discussion-views - 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. fof/discussion-views

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

fof/discussion-views
====================

Add view counts to discussions

1.0.0(1y ago)116.0k↓40.4%1MITPHPCI passing

Since Mar 28Pushed 3mo agoCompare

[ Source](https://github.com/FriendsOfFlarum/discussion-views)[ Packagist](https://packagist.org/packages/fof/discussion-views)[ Fund](https://opencollective.com/fof)[ RSS](/packages/fof-discussion-views/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (1)

FoF Discussion Views
====================

[](#fof-discussion-views)

[![MIT license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/fof/discussion-views/blob/master/LICENSE) [![Latest Stable Version](https://camo.githubusercontent.com/11f4310ab184ff4ea7f6936c815c2b8301b4e5f85b5b45b595e7efac8ddaffa5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f662f64697363757373696f6e2d76696577732e737667)](https://packagist.org/packages/fof/discussion-views) [![Total Downloads](https://camo.githubusercontent.com/af4410ac9b7cc7a7ed4762ef48689d1de7ac4eef8f5a4f2b1b9adddca4df5891/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666f662f64697363757373696f6e2d76696577732e737667)](https://packagist.org/packages/fof/discussion-views)

A lightweight discussion view tracker, with minimal settings and options.

Features
--------

[](#features)

- Tracks how many times a discussion has been viewed and displays it per discussion on the discussionlist. *Note: does not track unique views, rather every view, both as guest and registered member*
- Adds 2 sorting options: popular and unpopular
- Adds 1 event which developers can listen for: `DiscussionWasViewed` - includes accessor IP and UserAgent strings
- Adds 1 new permission where people can (re)set the viewcount of a discussion (default to admins)
- Uses `view_count` column created on the `discussions` table, so should not impact load performance
- Identify known crawlers with an option to not increase the view count for their visit. Uses [jaybizzle/crawler-detect](https://github.com/JayBizzle/Crawler-Detect) for identification

### Installation

[](#installation)

```
composer require fof/discussion-views:"*"
```

### Links

[](#links)

- [Packagist](https://packagist.org/packages/fof/discussion-views)
- [GitHub](https://github.com/friendsofflarum/discussion-views)
- [Discuss](https://discuss.flarum.org/d/24002)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance66

Regular maintenance activity

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 59.2% 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 ~108 days

Total

4

Last Release

92d ago

Major Versions

1.0.0 → 2.0.0-beta.12025-11-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16573496?v=4)[IanM](/maintainers/imorland)[@imorland](https://github.com/imorland)

![](https://avatars.githubusercontent.com/u/1630413?v=4)[Gregor Hammerschmidt](/maintainers/GreXXL)[@GreXXL](https://github.com/GreXXL)

![](https://www.gravatar.com/avatar/0538135c1debcef5602dce7ece027909cc832b7a6284ab9189a19aa8de98d60d?d=identicon)[clarkwinkelmann](/maintainers/clarkwinkelmann)

![](https://www.gravatar.com/avatar/1298cdc0b2402a1aa34fb75a254947d655e090d62bd0531311331d369cac934e?d=identicon)[datitisev](/maintainers/datitisev)

---

Top Contributors

[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (45 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")[![iPurpl3x](https://avatars.githubusercontent.com/u/18526076?v=4)](https://github.com/iPurpl3x "iPurpl3x (2 commits)")[![luceos](https://avatars.githubusercontent.com/u/504687?v=4)](https://github.com/luceos "luceos (2 commits)")[![zdeneksvarc](https://avatars.githubusercontent.com/u/79550344?v=4)](https://github.com/zdeneksvarc "zdeneksvarc (1 commits)")[![DavideIadeluca](https://avatars.githubusercontent.com/u/146922689?v=4)](https://github.com/DavideIadeluca "DavideIadeluca (1 commits)")

### Embed Badge

![Health badge](/badges/fof-discussion-views/health.svg)

```
[![Health](https://phpackages.com/badges/fof-discussion-views/health.svg)](https://phpackages.com/packages/fof-discussion-views)
```

###  Alternatives

[jenssegers/agent

Desktop/mobile user agent parser with support for Laravel, based on Mobiledetect

4.8k67.8M440](/packages/jenssegers-agent)[hisorange/browser-detect

Browser &amp; Mobile detection package for Laravel.

1.1k10.1M50](/packages/hisorange-browser-detect)[shetabit/visitor

Laravel visitor

565578.2k8](/packages/shetabit-visitor)[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[fof/byobu

Well integrated, advanced private discussions.

61105.8k9](/packages/fof-byobu)[fof/user-bio

Add a user bio to user profiles

2196.5k9](/packages/fof-user-bio)

PHPackages © 2026

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