PHPackages                             konrness/instant-win - 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. konrness/instant-win

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

konrness/instant-win
====================

PHP class for randomly awarding a fixed amount of instant-win over a set period of time.

0.2(11y ago)71343MITPHPPHP &gt;=5.3.0

Since May 1Pushed 11y ago2 watchersCompare

[ Source](https://github.com/konrness/instant-win)[ Packagist](https://packagist.org/packages/konrness/instant-win)[ Docs](http://github.com/konrness/instant-win)[ RSS](/packages/konrness-instant-win/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (10)Versions (3)Used By (0)

instant-win
===========

[](#instant-win)

PHP class for randomly awarding a fixed amount of instant-wins over a set period of time.

Usage
=====

[](#usage)

See `scripts/example-daily.php` for an example of how to award 10 instant-wins each day (midnight to midnight), even when the number of instant-win attempts is variable or unknown.

```
$ ./scripts/example-daily.php
You won!!!
$ ./scripts/example-daily.php
Sorry, you did not win.

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

4068d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/775146b2489ab4d8226ca008919a4bc903013a9efbf8681e2e7c0a0b14fb8404?d=identicon)[konrness](/maintainers/konrness)

---

Top Contributors

[![konrness](https://avatars.githubusercontent.com/u/165372?v=4)](https://github.com/konrness "konrness (23 commits)")

---

Tags

lotterysweepstakesprizeinstant win

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/konrness-instant-win/health.svg)

```
[![Health](https://phpackages.com/badges/konrness-instant-win/health.svg)](https://phpackages.com/packages/konrness-instant-win)
```

###  Alternatives

[soup/paginator

Paginator is a simple class that allows you to create pagination. It doesn't require any database connection. It is compatible with Twitter's Bootstrap Framework, by using the CSS class pagination that is also attached.

351.5k](/packages/soup-paginator)[components/jquery-htmlclean

HTML Clean plug-in for jQuery

183.1k1](/packages/components-jquery-htmlclean)

PHPackages © 2026

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