PHPackages                             ramphor/post-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. ramphor/post-views

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

ramphor/post-views
==================

Track visited posts and user view posts

0.5(5y ago)074[2 issues](https://github.com/ramphor/post-views/issues)GPL-2.0-or-laterPHP

Since Dec 31Pushed 5y agoCompare

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

READMEChangelog (2)DependenciesVersions (3)Used By (0)

post-views
==========

[](#post-views)

Track visited posts and user view posts

install
=======

[](#install)

```
composer require ramphor/post-views

```

```
$userHandler = new UserHandler(true);
$userHandler->setRemoteIP(wordland_get_real_ip_address());
$userHandler->setUserId(get_current_user_id());
$userHandler->setExpireTime(1 * 24 * 60 * 60); // 1 day

$cookieHandler = new CookieHandler();
$cookieHandler->setExpireTime(30 * 24 * 60 * 60); // 30 days

$this->viewCounter = new PostViewCounter(PostTypes::get());
$this->viewCounter->addHandle($cookieHandler);
$this->viewCounter->addHandle($userHandler);

$this->viewCounter->count();

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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.

###  Release Activity

Cadence

Every ~126 days

Total

2

Last Release

1886d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a609a3b3a36dee9f36ef6f8d3b2b2dc91eebefc7644031e829e65bca4329799?d=identicon)[puleeno](/maintainers/puleeno)

---

Top Contributors

[![puleeno](https://avatars.githubusercontent.com/u/22538657?v=4)](https://github.com/puleeno "puleeno (43 commits)")

### Embed Badge

![Health badge](/badges/ramphor-post-views/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k132.8M895](/packages/barryvdh-laravel-ide-helper)[friendsofphp/proxy-manager-lts

Adding support for a wider range of PHP versions to ocramius/proxy-manager

1.2k147.4M151](/packages/friendsofphp-proxy-manager-lts)[php-stubs/wordpress-stubs

WordPress function and class declaration stubs for static analysis.

20416.0M415](/packages/php-stubs-wordpress-stubs)[scheb/tombstone

Dead code detection with tombstones for PHP

285622.5k2](/packages/scheb-tombstone)[lkrms/pretty-php

The opinionated PHP code formatter

15088.3k1](/packages/lkrms-pretty-php)[ericlagarda/nova-embed

Embed field for Laravel Nova

1222.1k](/packages/ericlagarda-nova-embed)

PHPackages © 2026

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