PHP code example of jauharibill / scrapping-api-pegadaian

1. Go to this page and download the library: Download jauharibill/scrapping-api-pegadaian 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/ */

    

jauharibill / scrapping-api-pegadaian example snippets




old\Pegadaian;

class Index {
    public function execute() {
        $peg = new Pegadaian();
        return $peg->getSellingPrice()->getContents();
    }
}

$test = new Index();
echo $test->execute();