PHPackages                             venveo/view-count - 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. venveo/view-count

ArchivedCraft-plugin[Utility &amp; Helpers](/categories/utility)

venveo/view-count
=================

Keep track of view counts over a period of time to show popular entries.

1.0.3(6y ago)0593MITPHP

Since Oct 15Pushed 6y ago3 watchersCompare

[ Source](https://github.com/venveo/craft-view-count)[ Packagist](https://packagist.org/packages/venveo/view-count)[ RSS](/packages/venveo-view-count/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (5)Dependencies (1)Versions (3)Used By (0)

View Count Plugin for Craft CMS 3.x
===================================

[](#view-count-plugin-for-craft-cms-3x)

Keep track of view counts over a period of time to show popular elements. Right now, it lumps views into aggregates by day.

Usage
-----

[](#usage)

After installing and enabling, all you need to do is register a view count in the template:

```
{% do craft.viewcount.increment(entry.id) %}
```

Of course, it doesn't need to be an entry id, it could be any element ID, such as a category.

To start using views in your query, all you need to do is use the "views" keyword in your `order` parameter. For example:

```
{% set blogPosts = craft.entries({
    section: 'blog',
    order: 'views DESC',
    limit: 10
}) %}
```

This will sort based on the number of views in the past 24 hours.

Settings
--------

[](#settings)

Right now, there is a single setting to toggle whether view counts should be recorded to logged in users.

Developer Events
----------------

[](#developer-events)

The following events are emitted to allow for programmtic customization:

#### EVENT\_REGISTER\_VIEW

[](#event_register_view)

You can listen for this event on the `venveo\viewcount\services\ViewCount` class to control whether a view count should be registered. The event class, `ViewCountEvent`, contains:

- `$elementId` - The element ID being registered as a view
- `$siteId` - The id of the site the element resides on
- `$shouldSkip` - a boolean for whether the view should be skipped

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require venveo/view-count

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Popular Entries.

Brought to you by [Venveo](https://venveo.com)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~110 days

Total

3

Last Release

2552d ago

### Community

Maintainers

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

---

Top Contributors

[![Mosnar](https://avatars.githubusercontent.com/u/3810939?v=4)](https://github.com/Mosnar "Mosnar (5 commits)")[![jrm98](https://avatars.githubusercontent.com/u/2946458?v=4)](https://github.com/jrm98 "jrm98 (3 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginpopular entries

### Embed Badge

![Health badge](/badges/venveo-view-count/health.svg)

```
[![Health](https://phpackages.com/badges/venveo-view-count/health.svg)](https://phpackages.com/packages/venveo-view-count)
```

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[pennebaker/craft-architect

CraftCMS plugin to generate content models from JSON/YAML data.

72148.5k5](/packages/pennebaker-craft-architect)

PHPackages © 2026

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