Recommend this page to a friend! |
Download |
Info | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2023-10-27 (10 months ago) | Not enough user ratings | Total: 66 | All time: 10,363 This week: 89 |
Version | License | PHP version | Categories | |||
algo_dgw 1.0.0 | MIT/X Consortium ... | 5 | PHP 5, Finances |
Description | Author | |
This package can perform operations with amounts in a wallet. |
Example Usage:
try {
$walletA = new DigitalWallet(100);
$walletB = new DigitalWallet(50);
$walletA->deposit(30);
$walletB->withdraw(20);
echo "Wallet A Balance: " . $walletA->getBalance() . "<br>";
echo "Wallet B Balance: " . $walletB->getBalance() . "<br>";
$walletA->transfer($walletB, 25);
echo "Wallet A Balance after transfer: " . $walletA->getBalance() . "<br>";
echo "Wallet B Balance after transfer: " . $walletB->getBalance() . "<br>";
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}
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 |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.