PHP code example of datadebasa / sheet2blog

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

    

datadebasa / sheet2blog example snippets


namespace Datadebasa\sheet2blog;

$artikel->setPage(2);

$artikel->setLimit(5);

$artikel->setSheetId("your-sheet-id");

$artikel->setGid("your-gid");

$artikel->getPaginate(1, 10);

$artikel->setPage(1)->setLimit(5)->getContent();

$data = $artikel->detailContent("judul-artikel-slug");

use Datadebasa\sheet2blog\sheet2blog;

$artikel = new sheet2blog();
$artikel->setSheetId(SHEET_ID);
$artikel->setGid(G_ID);

$data = $artikel->detailContent("bupati-pringsewu-dorong-inovasi-dan-kualitas-produksi-ikan");

echo ($data['status']);