Anubis PHPCards

Anubis PHPCards

A quick and easy way to add a deck of cards to any project

  • Language: PHP
  • Released: Jul 13, 2011
    Last Update: Jul 13, 2011

This deck class, and co-operating card class, will work for any website or command line project you may be putting together with PHP. Simply include the files, and build a new deck, passing an integer with the number of decks you wish to use.

Example usage


$deck = new deck(1);

for($i = 1; $i <= 5; $i++) {
    $card = $deck -> dealCard();
    echo $card -> getCardLetter() . ' ' . $card -> getCardSuitName() . "<br />";

This will print out a result like the following:

4 Spade 
K Heart 
7 Club 
K Spade 
6 Club
You need to log-in or create an account
  • Create an account
  • Log-in

Please use your real name.

Activation link will be sent to this address.

Minimum 8 characters

Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.


Save your watchlist

Fill your details below to receive project updates from your watch list - including new versions, price changes and discounts.

I agree to the terms of use and privacy policy.

2 licenses, starting from From » $4.99 View Licenses 14 day money-back guarantee
Post a comment

Or enter your name and Email
  • Valentino Radosavlevici 2 years ago
    Good job