PHP code example of lukeraymonddowning / pest-plugin-money
1. Go to this page and download the library: Download lukeraymonddowning/pest-plugin-money library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lukeraymonddowning / pest-plugin-money example snippets
useMoneyLibrary(\Money\Money::class); // Use the MoneyPHP library
useMoneyLibrary(\Brick\Money\Money::class); // Use the Brick Money library
useMoneyLibrary(\ArchTech\Money\Money::class); // Use the Archtech Money library
useCurrency('GBP');
expect($money)->toCost('100'); // Uses Great British Pounds
useCurrency('USD');
expect($money)->toCost('100'); // Uses US Dollars
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.