PHPackages                             nubox/standard-card-deck - 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. nubox/standard-card-deck

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

nubox/standard-card-deck
========================

simple functions for displaying standard card decks

029PHP

Since Aug 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nusphere/standard-card-deck)[ Packagist](https://packagist.org/packages/nubox/standard-card-deck)[ RSS](/packages/nubox-standard-card-deck/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Standard Card Deck
==================

[](#standard-card-deck)

Introduction
------------

[](#introduction)

This small composer package helps to render playing cards via HTML.

[![img.png](docs%2Fimg.png)](docs%2Fimg.png)

Installation
------------

[](#installation)

Install through composer

```
{
    "require" : {
        "nubox/standard-card-deck" : "*"
    }
}
```

Usage
-----

[](#usage)

### Draw a card by a simple string

[](#draw-a-card-by-a-simple-string)

```
include 'vendor/autoload.php';

echo drawCard('4 Karo');
echo drawCard('10 Herz');
```

### Generating a card deck, take a card from the deck and draw it (OOP Style)

[](#generating-a-card-deck-take-a-card-from-the-deck-and-draw-it-oop-style)

```
$deck = new \NuBox\StandardCardDeck\Model\Deck();

// or

$deck = \NuBox\StandardCardDeck\Singleton\DeckSingleton::getInstance()->getDeck();

echo drawCard($deck->takeCard());
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

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/981e7d33e845cbf63bb52f9d61b32a41421f88392f488970a9023858aa0e30d3?d=identicon)[Nusphere](/maintainers/Nusphere)

---

Top Contributors

[![nusphere](https://avatars.githubusercontent.com/u/5822825?v=4)](https://github.com/nusphere "nusphere (1 commits)")

### Embed Badge

![Health badge](/badges/nubox-standard-card-deck/health.svg)

```
[![Health](https://phpackages.com/badges/nubox-standard-card-deck/health.svg)](https://phpackages.com/packages/nubox-standard-card-deck)
```

PHPackages © 2026

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