PHP Classes

Deck: Shuffle and view a deck of playing cards

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 42%Total: 1,153 All time: 3,280 This week: 54Up
Version License Categories
deck 1.0.0GNU General Publi...PHP 5, Games
Description 

Author

This class can be used to display a deck of playing cards.

It can present the cards as images, as well display their names in English.

The class can also pick random cards for the deck and rank them according to their value.

Picture of Zafar Iqbal
Name: Zafar Iqbal is available for providing paid consulting. Contact Zafar Iqbal .
Classes: 8 packages by
Country: Greece Greece
Age: 51
All time rank: 2572 in Greece Greece
Week rank: 132 Up2 in Greece Greece Equal
Innovation award
Innovation award
Nominee: 2x

Details

PHP Deck Class Holds a full deck of playing cards with human readable names and image. May be used as a base for card games using PHP. View the class and test scripts for usage. Original image data from http://www.jfitz.com/cards/ Zafar Iqbal ultrasineATgmailDOTcom 2006-09-28

Screenshots (1)  
  • Ace-of-Spades.png
  Files folder image Files (6)  
File Role Description
Plain text file deck.php Class Class FIle
Accessible without login Plain text file readme.txt Data ReadMe
Plain text file test-deck-image.php Example Output the playing card image
Plain text file test-deck-randomcard.php Example View a random card
Plain text file test-deck-view.php Example View the full deck

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,153
This week:0
All time:3,280
This week:54Up
User Ratings User Comments (1)
 All time
Utility:65%StarStarStarStar
Consistency:55%StarStarStar
Documentation:-
Examples:45%StarStarStar
Tests:-
Videos:-
Overall:42%StarStarStar
Rank:3646
 
Very clever, nicely done.
15 years ago (F Philip DeGeorge)
70%StarStarStarStar