Important facts about commercial licenses

  • Licenses are perpetual. They do not expire and do not need to be renewed.
  • Licenses can be upgraded. You can upgrade to a more expensive license later paying only the difference in cost.
  • Pay attention to the distribution type - Hosted (sites / servers), binary (applications) or source (includes all the others). Choose according to your needs (more below).
  • All licenses allow commercial use unless otherwise indicated.
  • Read the full license by clicking on the icon.
  • Read more about licenses in our handy license guide.
$4

Personal License

1 site, 1 server No source distribution Non-commercial use only No modifications Attribution required
$9

Professional License

1 site, unlimited servers No source distribution 6 months support
You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

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

Anubis PHPCards

Anubis PHPCards
Developed by Weston Networks, Released Jul 13, 2011

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

PHP

Tags: blackjack , card games , cards , deck

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

<?php
include_once('deck.php');
include_once('card.php');

$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

User Reviews

No reviews have been submitted yet.
Read all 1 comments »

Questions & Comments


Or enter your name and Email
  • Valentino Radosavlevici 11 months ago
    Good job
You must be logged-in to vote. Log-in to your account or register now.