2017 © Pedro Peláez
 

library excel

PHP excel表格处理

image

cocolait/excel

PHP excel表格处理

  • Thursday, May 17, 2018
  • by cocolait
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 100 % Grown

The README.md

excel

PHP excel表格处理, (*1)

链接

  • 博客:http://www.mgchen.com
  • github:https://github.com/cocolait
  • gitee:http://gitee.com/cocolait

安装

composer require cocolait/excel

版本要求

PHP >= 5.3, (*2)

使用说明

该扩展包适用于任何框架, (*3)

使用案例

<?php
// 加载包 如果你使用的框架已经支持自动加载composer了 这行那么就可以省略了
require "vendor/autoload.php"

// excel表格处理
// 导入Excel文件
$data = \cocolait\extend\Excel::importExcel('上传文件名称','上传文件目录');
// 导出Excel文件
$data = \cocolait\extend\Excel::exportExcel('文件名称','设置Excel表格第一行的显示','需要导出的所有数据');
// Excel转换Array
$data = \cocolait\extend\Excel::excelFileToArray('Excel文件全路径','文件后缀 默认是 xls');

The Versions

17/05 2018

dev-master

9999999-dev http://www.mgchen.com/

PHP excel表格处理

  Sources   Download

Apache-2.0

The Requires

 

by Avatar cocolait

17/05 2018

2.0

2.0.0.0 http://www.mgchen.com/

PHP excel表格处理

  Sources   Download

Apache-2.0

The Requires

 

by Avatar cocolait

17/05 2018

1.0

1.0.0.0 http://www.mgchen.com/

PHP excel表格处理

  Sources   Download

Apache-2.0

The Requires

 

by Avatar cocolait