☢️
Metode Skripshit Project
  • introduction
  • getting started
  • Metode
    • Fuzzy
    • k-means
    • linear regresion
    • naive bayes
    • oreste
    • saw
    • topsis
    • wp
  • Office
  • math
  • image
  • donation
  • contributing
  • change log
  • about
Powered by GitBook
On this page
  • Office Class
  • DOCUMENT EXCEL CLASS
  • PDF PARSER
  • DOCX PARSER

Was this helpful?

Office

Office Class

Office Class adalah method khusus yang saya buat untuk membaca atau read file excel untuk keperluan testing seperti testing data jika , saya malas untuk mengambil data langsung dari database, saya bisa mengambil dan melakukan read pada file excel saja

DOCUMENT EXCEL CLASS

format file excel atau CSV

  • nama column berada pada ROW 1 [A1,B1,C1,D1 ... E - n]

  • data yang berupa value atau dimulai dari ROW 2

atau untuk contoh nyata bentuk file csv example bisa check disini ini adalah file example yang diambil dari kaggle untuk public data penelitian data science atau research of data science jakarta.csv untuk file example pada libraries saya

method available

$excel = new DocumentExcel;
$excel->read("filename.csv");
$excel->execute();

// show
$excel->showColumn();
$excel->showRow();
$excel->showByColumn("column-name");

basic usage

use Nagara\Src\Doc\DocumentExcel; //load libraries

// init or read file
$excel = new DocumentExcel;
$jakarta = $excel->read("jakarta.csv"); // read file excel
$excel->execute();


// show by column
$column = $excel->showColumn();
$row = $excel->showRow();
$bycolumn = $excel->showByColumn("hospitalized"); //insert column name


// debug field array
dump($column);
dump($row);
dump($bycolumn);

PDF PARSER

pdf parser is class pdf data extraction by Sebastien MALOT class for file

note name document can't have a space

basic usage

// init
use Sebastien\Src\Doc\PdfParser;

// create object
$pdf = new PdfParser;

// save data to string
$data = $pdf->parseFile("filename.pdf");
echo $data;

DOCX PARSER

Docx parser is class docx data extraction by answer at stackoverflow

note name document can't have a space

// init
use Nagara\Src\Doc\DocumentDocx;

// create object
$docx = new DocumentDocx;

// save data to string
$data = $docx->parseFile("filename.docx");
echo $data;
PreviouswpNextmath

Last updated 3 years ago

Was this helpful?