$defaultCurrency = Currency::getDefaultCurrency(); echo $defaultCurrency; // Output: USD
$usdAmount = 100; $eurAmount = $usdAmount * Currency::convertCurrency('USD', 'EUR'); echo $usdAmount.' USD = '.$eurAmount.' EUR'; // Output: 100 USD = 83.79 EURIn this example, we convert a value in USD to EUR using the `convertCurrency` method of the `Currency` class. We first define the USD amount as `$usdAmount`, and then multiply it by the conversion factor returned by `convertCurrency`. We then display both the USD and EUR amounts using the `echo` statement. Package library: The `Currency` class is not part of a specific package or library, but is a built-in class in PHP. It can be used in any PHP application without the need for external dependencies.