| Recommend this page to a friend! |
| Info | Example | Reputation | Support forum | Blog | Links |
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2026-02-25 (1 month ago) | Not yet rated by the users | Total: Not yet counted | Not yet ranked | |||||
| Version | License | PHP version | Categories | |||
| tcurrencyhandler 1.0 | Custom (specified... | 8.4 | Finances, PHP 8 |
| Description | Author | |
This package can retrieve details and format currency symbol values. |
What is the best PHP currency symbol class?
Get currency symbol from currency code
Please read this document to learn how to perform operations with money currencies.
<?php
|
A complete, modular currency management handler for the ASCOOS Web Operating System.
The class is part of the collection of about 1,500 classes that make up the ASCOOS OS.

TCurrencyHandler is the first publicly released class (with open source) of ASCOOS OS, designed to demonstrate:
This class provides:
This class is part of the ASCOOS OS Extras Kernel Classes system and does not require installation as it already exists in the kernel.
use ASCOOS\OS\Kernel\Science\Financials\TCurrencyHandler;
It is loaded dynamically by the internal app Extras Classes Manager, depending on user configuration.

This repository includes full DoBu docblocks for:
DoBu is the official documentation DSL of ASCOOS OS.
/*
dobu {
file:id(`expl15435`) {
ascoos {
name {`ASCOOS OS`},
version {`1.0.0`},
},
example {
class {`TCurrencyHandler`}
source {`example.php`},
category:langs {
en {`Financials`},
el {`?????????? ????????`}
},
description:langs {
en {`A complete example of currency management: symbols, names, formatting, validation.`},
el {`??? ?????? ?????????? ??????????? ??????????: ???????, ?????????, ???????????, ?????????.`}
},
author {`Drogidis Christos`},
sincePHP {`8.4.0`}
}
}
}
*/
use ASCOOS\OS\Kernel\Science\Financials\TCurrencyHandler;
$currency = TCurrencyHandler::getInstance();
// Normalize
echo $currency->normalize('xbt'); // BTC
// Validate
var_dump($currency->isValid('EUR')); // true
// Symbol
echo $currency->getSymbol('USD'); // $
// Name
echo $currency->getName('EUR', 'el'); // ????
// Format
echo $currency->format(1234.56, 'EUR'); // 1.234,56 ?
See the full example: example.php which produces the following result

ASCOOS OS uses a Full Modular Kernel Architecture:
TCurrencyHandler is a Kernel Science class, but loaded as an Extra.
AGL (ASCOOS General License)
Drogidis Christos ASCOOS OS Creator https://www.ascoos.com
| File | Role | Description | ||
|---|---|---|---|---|
| Example | Example script | |||
| Lic. | License text | |||
| Lic. | License text | |||
| Doc. | Documentation | |||
| Doc. | Documentation | |||
| / | config | / | currency |
| File | Role | Description |
|---|---|---|
| |
Conf. | Configuration script |
| |
Conf. | Configuration script |
| |
Conf. | Configuration script |
| |
Conf. | Configuration script |
| / | extras | / | science | / | financials |
| File | Role | Description |
|---|---|---|
| |
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. |
| tcurrencyhandler-2026-02-25.zip 18KB | |
| tcurrencyhandler-2026-02-25.tar.gz 15KB | |
| Install with Composer |
| Needed packages | ||
| Class | Download | Why it is needed | Dependency |
|---|---|---|---|
| Ascoos OS | Uses Ascoos OS Kernel | Required |
| Version Control | Unique User Downloads | |||||||
| 100% |
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.