nubox / standard-card-deck
simple functions for displaying standard card decks
                                    Fund package maintenance!
                                                                            
                                                                                                                                        Community Bridge
                                                                                    
                                                                
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nubox/standard-card-deck
Requires
- php: ~8.2
 
Requires (Dev)
- roave/security-advisories: dev-latest
 
This package is auto-updated.
Last update: 2025-10-22 01:26:54 UTC
README
Introduction
This small composer package helps to render playing cards via HTML.
Installation
Install through composer
{
    "require" : {
        "nubox/standard-card-deck" : "*"
    }
}
Usage
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)
$deck = new \NuBox\StandardCardDeck\Model\Deck(); // or $deck = \NuBox\StandardCardDeck\Singleton\DeckSingleton::getInstance()->getDeck(); echo drawCard($deck->takeCard());
