PHPackages                             mihaiz/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. mihaiz/deck

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

mihaiz/deck
===========

Library to describe decks for deck-building games such as Magic the Gathering or Hearthstone

1.0(10y ago)021GPL-3.0PHPPHP &gt;5.5

Since Aug 19Pushed 10y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Deck
====

[](#deck)

[![Latest Version](https://camo.githubusercontent.com/59c75729da1c393cc1e86b16c3b3cf2e2048b1488ee012fc20c0484b482fcb42/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f617661746172752f6465636b2e7376673f7374796c653d666c6174)](https://github.com/avatary/deck/releases)[![Software License](https://camo.githubusercontent.com/f48f8d6cf609f5b181b9c3218a85175fe8a5809c7ea400347f39697a5d55065d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/3781a4c62da2f02309b82d0b97220bf6147ffcdeb73867d3b5ebcf8174debb6e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f617661746172752f6465636b2f6d61737465722e7376673f7374796c653d666c6174)](https://travis-ci.org/avataru/deck)[![SensioLabsInsight](https://camo.githubusercontent.com/14f41fea271d09e50f4a418128755b2219082f7b93bf4350644aa4cb6b22a53b/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64636635633531392d343634632d343130382d396361322d3332376539326339373761332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/dcf5c519-464c-4108-9ca2-327e92c977a3)[![Quality Score](https://camo.githubusercontent.com/542ed793ce7d7f0245acfcb72f833050fa71a089f2eea1d5eb93be2c37ef9596/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f617661746172752f6465636b2f6d61737465722e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/avataru/deck)[![Total Downloads](https://camo.githubusercontent.com/d4041e8aa3167275fa85581400620bec036f9d76ffde70dedfb69184a5b21b75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d696861697a2f6465636b2e7376673f7374796c653d666c6174)](https://packagist.org/packages/mihaiz/deck)

Basic card game deck building library. It should be able to handle any card game because it is rules-agnostic. However it can be extended to add a rules layer.

The main reason I build this was as an exercise for unit testing.

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

[](#installation)

```
composer require mihaiz/deck
```

Copyright notices
-----------------

[](#copyright-notices)

Magic the Gathering images, logos and all associated marks, logos, places, names, creatures, races, characters, products and illustations are the proprietary property of © Wizards of the Coast LLC, a subsidiary of Hasbro, Inc. All Rights Reserved, and are protected by copyright, trademark, and other intellectual property laws.

Hearthstone images, logos and all associated marks, logos, places, names, creatures, races, characters, products and illustations are the proprietary property of © Blizzard Entertainment, Inc. All rights Reserved, and are protected by copyright, trademark, and other intellectual property laws.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3925d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1995d4093eedb0eb150b596ebf325ee05626bc4913abff5ac8f6772df30a4769?d=identicon)[avataru](/maintainers/avataru)

---

Top Contributors

[![avataru](https://avatars.githubusercontent.com/u/209354?v=4)](https://github.com/avataru "avataru (19 commits)")

---

Tags

carddeckmtgmagic the gatheringhearthstone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mihaiz-deck/health.svg)

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

###  Alternatives

[ericlagarda/nova-text-card

A custom card for Laravel Nova to show Text in cards with some good options

20388.6k2](/packages/ericlagarda-nova-text-card)[digital-creative/resource-navigation-link

Create links to internal or external resources.

1044.0k](/packages/digital-creative-resource-navigation-link)

PHPackages © 2026

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