PHP code example of marshmallow / simple-value-metric

1. Go to this page and download the library: Download marshmallow/simple-value-metric 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/ */

    

marshmallow / simple-value-metric example snippets


// ...
protected function cards()
{
	(new SimpleValueMetric)
	    ->title('Scored quotations')
	    ->calculate(
	        function ($simple_value) {
	            return $simple_value->formattedValue(72)
	                                ->footer(
	                                    '99% of the quotations are orders!'
	                                );
	        }
	    )->help('72 of a total of 73 quotations are now orders :)'),
	// ...
}