PHPackages                             tobya/every - 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. tobya/every

ActiveLibrary

tobya/every
===========

Execute a closure every count times the function is called

v0.4(2y ago)03.6k↓100%[2 issues](https://github.com/tobya/Every/issues)MITPHP

Since Sep 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tobya/Every)[ Packagist](https://packagist.org/packages/tobya/every)[ RSS](/packages/tobya-every/feed)WikiDiscussions main Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Every
=====

[](#every)

A very simple Laravel package that will execute a closure every x times it is called.

### Installation

[](#installation)

Install with composer

> composer require tobya/every

### Usage

[](#usage)

use in a loop to execute every x times

```
 foreach( $BigList as $item){
    if (DoACheck()){
      DoSomethign();
    }
    \Tobya\Every\Every::Every(20, function(){
        echo 'checked 20';
      });
  }

```

if you just want to echo you can simply use the echo function

```
 foreach( $BigList as $item){
    if (DoACheck()){
      DoSomethign();
    }
    \Tobya\Every\Every::Echo(20, 'checked 20');

  }

```

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

4

Last Release

774d ago

### Community

Maintainers

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

---

Top Contributors

[![tobya](https://avatars.githubusercontent.com/u/325502?v=4)](https://github.com/tobya "tobya (3 commits)")

### Embed Badge

![Health badge](/badges/tobya-every/health.svg)

```
[![Health](https://phpackages.com/badges/tobya-every/health.svg)](https://phpackages.com/packages/tobya-every)
```

PHPackages © 2026

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