PHPackages                             jamessessford/playing-cards - 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. jamessessford/playing-cards

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

jamessessford/playing-cards
===========================

A PHP implementation of a deck of playing cards to be used with Verbs

v1.0.4(8mo ago)025MITPHP

Since Oct 31Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/jamessessford/playing-cards)[ Packagist](https://packagist.org/packages/jamessessford/playing-cards)[ RSS](/packages/jamessessford-playing-cards/feed)WikiDiscussions main Synced 1mo ago

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

Deck of cards
=============

[](#deck-of-cards)

A package to provide an implementation of a deck of cards for fun with [Verbs](verbs.thunk.dev)

To use this package, run `composer require jamessessford/playing-cards`.

Once installed, you can run `php artisan vendor:publish --provider=PlayingCards\\PlayingCardsProvider` to publish the card images to your public directory.

Usage
=====

[](#usage)

```
use PlayingCards\Deck;
use PlayingCards\CardCollection;

$deck = new Deck();

$cardCollection = CardCollection::make($deck->deal());

$cardImage = card_front($cardCollection->pop());
$cardBackImage = card_back();
```

Deck contents
=============

[](#deck-contents)

4 suits of 13 cards.

The suits in the deck are

```
Hearts
Clubs
Diamonds
Spades

```

The cards that make up each suit are

```
Ace
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Jack
Queen
King

```

A deck consists of 52 cards, covering each value for each suit

A deck can be shuffled

A deck can be dealt from

A deck can be queried for remaining cards

Cards
=====

[](#cards)

A card has a suit and a value

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance58

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Total

5

Last Release

268d ago

### Community

Maintainers

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

---

Top Contributors

[![jamessessford](https://avatars.githubusercontent.com/u/17096446?v=4)](https://github.com/jamessessford "jamessessford (14 commits)")

---

Tags

cardsverbsplaying cards

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jamessessford-playing-cards/health.svg)

```
[![Health](https://phpackages.com/badges/jamessessford-playing-cards/health.svg)](https://phpackages.com/packages/jamessessford-playing-cards)
```

###  Alternatives

[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[stepanenko3/nova-cards

A Laravel Nova info cards.

33143.0k](/packages/stepanenko3-nova-cards)[swooinc/nova-countdown

A countdown card for Laravel Nova.

1224.5k](/packages/swooinc-nova-countdown)[phannaly/php-datetime-khmer

The PHP library for convert datetime to Khmer

1510.3k](/packages/phannaly-php-datetime-khmer)[moosend/website-tracking

By installing the Moosend PHP Tracking library you are can track page views, product views, add to cart events and successful purchases. You can later use these details to segment your user base, run automations, check how successful your latest promo has been and how many conversions your landing page has led to.

1020.9k1](/packages/moosend-website-tracking)

PHPackages © 2026

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