PHP code example of jn-devops / products
1. Go to this page and download the library: Download jn-devops/products 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/ */
jn-devops / products example snippets
return [
'default' => [
'processing_fee' => 10000,
'percent_dp' => 0.10, // 10%
'dp_term' => 12, // 12 months
'percent_mf' => 0.085, // 8.5%
],
];
expect($product->getAppraisedValue()->equals($product->appraised_value))->toBeTrue();
expect($product->getPercentDownPayment())->toBe($product->percent_down_payment);
$data = ProductData::fromModel($product);