PHP code example of seansch / rapnet

1. Go to this page and download the library: Download seansch/rapnet 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/ */

    

seansch / rapnet example snippets


'providers' => [
    'Seansch\Rapnet\RapnetServiceProvider'
];


'aliases' => [
    'Rapnet' => 'Seansch\Rapnet\RapnetFacade'
];


php artisan vendor:publish


Rapnet::setDiamondParams(
    $request->input('diamond_shape'),
    $request->input('carat_weight'),
    $request->input('diamond_color'),
    $request->input('estimated_clarity')
);

$price = Rapnet::getPrice();