PHP Classes
elePHPant
Icontem

PHP Vending Machine: Simulate a vending machine business operations

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-05-21 (6 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 172 All time: 8,543 This week: 356Up
Version License PHP version Categories
vendingmachine 1.0.0GNU General Publi...5PHP 5, Finances
Description Author

This package can simulate a vending machine business operations.

The main class can process several operations like:

- Add products to the stock
- Get the price of the products
- Add coins inserted by the customer
- Process payments using bills, coins or a card
- Compute the change to be returned to the customer using the available coins

Innovation Award
PHP Programming Innovation award nominee
May 2019
Number 9
Vending machines are very common and appear in many places to sell food, drinks and other types of products.

This package provides a complete simulation of a vending machine written in PHP, so it can be used to test vending machine designs that can be implemented in the real world.

Manuel Lemos
  Performance   Level  
Name: Charles <contact>
Classes: 4 packages by
Country: China China
Age: 47
All time rank: 243329 in China China
Week rank: 67 Up1 in China China Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

 

  Files folder image Files  
File Role Description
Plain text file BankCard.php Class Class source
Plain text file Factory.php Class Class source
Accessible without login Image file machine.jpeg Data Auxiliary data
Plain text file VendingMachine.php Class Class source
Accessible without login Plain text file VendingMachineTest.php Test PHPUnit test class

 Version Control Unique User Downloads Download Rankings  
 100%
Total:172
This week:0
All time:8,543
This week:356Up