PHP Classes

How to Implement a Simple PHP Expense Management System Using the Package Receipt: Process and display expense receipts

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-06-15 (Less than 1 hour ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
receipt 1.0MIT/X Consortium ...5PHP 5, Finances
Description 

Author

This package can process and display expense receipts.

It provides a class that can load a list of expenses defined as an array in a PHP script.

The class can process expenses and display the total amount spent, as well as the tax amount.

Picture of Pierre-Henry Soria
  Performance   Level  
Name: Pierre-Henry Soria <contact>
Classes: 53 packages by
Country: United Kingdom
Age: 32
All time rank: 37116 in United Kingdom
Week rank: 22 Up3 in United Kingdom Up
Innovation award
Innovation award
Nominee: 18x

Winner: 3x

Instructions

Example

<?php
/**
 * @author Pierre-Henry Soria <[email protected]>
 * @copyright (c) 2015, Pierre-Henry Soria. All Rights Reserved.
 * @license MIT License <http://www.opensource.org/licenses/mit-license.php>
 * @link http://github.com/pH-7/
 */

require 'Receipt.class.php';

echo
'<div style="align:center">' . nl2br(new Receipt('baskets.data.php')) . '</div>';


Details

Receipt (including Sales Taxes) PHP Class

What is That?

Description

This PHP class is a very small project using the TDD practices (Test-Driven Development).

Who is the Author?

Pierre-Henry Soria

Where to contact the Author

By email at: pierrehenrysoria [[AT]] gmail [[D0T]] com

What is the License?

This script is under MIT License


  Files folder image Files (7)  
File Role Description
Accessible without login Plain text file baskets.data.php Conf. Configuration script
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation
Plain text file Receipt.class.php Class Class source
Plain text file ReceiptTest.class.php Class Class source

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  
 100%
Total:0
This week:0