PHPackages                             iamvar/cardgame - 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. [CLI &amp; Console](/categories/cli)
4. /
5. iamvar/cardgame

ActiveBundle[CLI &amp; Console](/categories/cli)

iamvar/cardgame
===============

This is the simple php console application to play card game 21.

02PHP

Since Sep 12Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Tweny one
=========

[](#tweny-one)

Description
-----------

[](#description)

This is the simple php console application with symfony/console to play card game **21**.

You have randomly shuffled deck of 52 cards (4 cards of each kind - 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A)

Each card has value associated with it:

2345678910JQKA23456789101111111### Goal

[](#goal)

You have to pick cards to be as close to 21 as possible and have higher score than opponent.

Installation and Usage
----------------------

[](#installation-and-usage)

To run application:

### Installation

[](#installation)

composer require iamvar/cardgame

### Run

[](#run)

bin/console game:21

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/89bc565362fbf870e817501b8b65cbdca6d05831c904878c6b713dba2e6fc85a?d=identicon)[iamvar](/maintainers/iamvar)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/iamvar-cardgame/health.svg)

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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