2017 © Pedro Peláez
 

project php-excel-reader

the PHPExcelReaderk

image

writethesky/php-excel-reader

the PHPExcelReaderk

  • Wednesday, October 26, 2016
  • by writethesky
  • Repository
  • 1 Watchers
  • 0 Stars
  • 86 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 54 % Grown

The README.md

PHPExcelReader 是一个轻量级的excel文件读取类, 支持 CSV, XLS, XLSX 文件, (*1)

依赖:

  • PHP 5.3.0+
  • PHP 必须开启支持Zip文件处理 (see http://php.net/manual/en/zip.installation.php)

例子:

<?php
    use writethesky\PHPExcelReader\PHPExcelReader;

    $Reader = new PHPExcelReader('test.xls');
    $total = $Reader->count();          // 获取总行数
    //$current = $Reader->current();    // 获取当前行数据

    /*
    $Reader->seek(4);                   // 跳到第4行
    $row = $Reader->current();          // 获取当前行数据
    */

    /*
    foreach($Reader as $key => $row){
        $data[] = $row;                 // 循环行内数据
    }
    */

    var_dump($total);

The Versions

26/10 2016

dev-master

9999999-dev http://xxx.cn/

the PHPExcelReaderk

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar writethesky

thinkphp phpexcelreader

26/10 2016

v1.0

1.0.0.0 http://xxx.cn/

the PHPExcelReaderk

  Sources   Download

Apache-2.0

The Requires

  • php >=5.4.0

 

by Avatar writethesky

thinkphp phpexcelreader