PHPackages                             predictator/co-visitation-counts - 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. predictator/co-visitation-counts

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

predictator/co-visitation-counts
================================

1.2.1(9y ago)2370MITPHPPHP &gt;= 7.0

Since Feb 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/predictator/co-visitation-counts)[ Packagist](https://packagist.org/packages/predictator/co-visitation-counts)[ RSS](/packages/predictator-co-visitation-counts/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Co visitation count computation
===============================

[](#co-visitation-count-computation)

Usage
-----

[](#usage)

### Add visits

[](#add-visits)

```
$coVisit = new CoVisitationCounts();

$visitedObject = new CoVisitationCounts\VisitedObject('10');
$visit = new CoVisitationCounts\Visit('userId-12', $visitedObject);

$coVisit->addVisit($visit);

$currentVisitedObject = new CoVisitationCounts\VisitedObject('11');
$currentVisit = new CoVisitationCounts\Visit('userId-16', $currentVisitedObject, new \DateTime());

$result = $coVisit->getResult($currentVisit);
```

### Export model

[](#export-model)

```
$model = $coVisit->exportModel(new CoVisitationCounts\CoVisitationCountsModel());
$result = $model->getResult($currentVisit);
```

### Process export

[](#process-export)

```
/** @var VisitedObjectInterface $item */
foreach ($result as $item) {
    $item->getId();
}
```

[![Build Status](https://camo.githubusercontent.com/f512415bb520d340f62d8959bbdbde2392698c65e2f04f448c2382da4584a7ba/68747470733a2f2f7472617669732d63692e6f72672f7072656469637461746f722f636f2d76697369746174696f6e2d636f756e74732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/predictator/co-visitation-counts)

predictator.eu

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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 ~16 days

Total

4

Last Release

3374d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c5ea6e7d8143a1fba541e1f41419cf36a4f970806d4bd91094d3b46177aea6d?d=identicon)[systream](/maintainers/systream)

---

Top Contributors

[![systream](https://avatars.githubusercontent.com/u/1583029?v=4)](https://github.com/systream "systream (5 commits)")

---

Tags

predictionsco-visitation-countsco-visitationco visit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/predictator-co-visitation-counts/health.svg)

```
[![Health](https://phpackages.com/badges/predictator-co-visitation-counts/health.svg)](https://phpackages.com/packages/predictator-co-visitation-counts)
```

###  Alternatives

[imanghafoori/laravel-decorator

A package to easily decorate your function calls.

13913.5k](/packages/imanghafoori-laravel-decorator)[invato/redirect-to-index

Laravel Nova package to redirect to the index view instead of the detail after creating or editing a resource.

1220.0k](/packages/invato-redirect-to-index)[yii2mod/yii2-bx-slider

Bx-slider widget based on bx-slider extension {@link http://bxslider.com)

1110.8k](/packages/yii2mod-yii2-bx-slider)

PHPackages © 2026

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