PHP code example of muhfarkhans / lpsegg

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

    

muhfarkhans / lpsegg example snippets


use App\Lpsegg\LpseTable;
$lp = new LpseTable();

$params = [
    // 'kategoriId' => 2,
    // 'rekanan' => "", 
    // 'tahun' => "",
    // 'instansiId' => "",
    // 'search[value]' => "",
    // 'start'  => 0, 
    // 'length' => 20, // moderate if start filled
];

$data = $lp->getTable($params);

$array = $lp->getArray($data);
print_r($array);

$json = $lp->getJson($data);
echo $json;