Skip to content

leonardoopitz/ci-excel-reader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 

Repository files navigation

CodeIgniter Library: Excel Reader

ci-excel-reader

About this library

This CodeIgniter's Library is used to read XLS files and return an array with its info.

Its usage is recommended for CodeIgniter 2 or greater.

Usage

// Load the spreadsheet reader library
$this->load->library('excel_reader');

// Read the spreadsheet via a relative path to the document
// for example $this->excel_reader->read('./uploads/file.xls');
$this->excel_reader->read('./uploads/file.xls');

// Get the contents of the first worksheet
$worksheet = $this->excel_reader->sheets[0];

$numRows = $worksheet['numRows']; // ex: 14
$numCols = $worksheet['numCols']; // ex: 4
$cells = $worksheet['cells']; // the 1st row are usually the field's name

Ale Mohamad

About

CodeIgniter library that reads XLS files and returns an array.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published