PHP code example of chay22 / recselmeter

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

    

chay22 / recselmeter example snippets


$url = 'http://fjb.kaskus.co.id/product/idlapak1234567890';
$recselmeter = new RecSelMeter($url);
$score = $recselmeter->calculate();

echo $score;

$data = $recselmeter->config()->data();
print_r($data);

$recselmeter->config()->newRank([
                       'KASKUS Plus' => 20,
                       'Moderator' => 500,
                       'Administrator' => 1000,
                  ]);
$recselmeter->config()->newSold([
                        1 => 30,
                        2 => 50,
                        3 => 100,
                  ]);

$recselmeter->config()->addRank(['Aktivis Kaskus' => 30]);
$recselmeter->config()->addSold([7 => 60]);