os/excel-bundle
最新稳定版本:2.1
Composer 安装命令:
composer require os/excel-bundle
包简介
OS Excel Bundle for Symfony2
关键字:
README 文档
README
Add this line to the require option in your composer.json file:
"os/excel-bundle": "dev-master"
Execute this command line
php composer.phar update os/excel-bundle
In your app/AppKernel.php
new OS\ExcelBundle\OSExcelBundle
USING:
Call service
$excel = $this->get('os.excel');
Open file
$excel->loadFile([FILE_PATHNAME]);
Select sheet
$excel->setActiveSheet([INDEX_OF_SHEET]);
Get count of sheet
$excel->getSheetCount();
Get sheet names
$excel->getSheetNames();
Get count of rows of selected sheet
$excel->getRowCount();
Get Count of columns of selected sheet
$excel->getColumnCount();
Get index of last column
$excel->getHighestColumn();
Get row data
$excel->getRowData([INDEX_OF_ROW]);
Get cell data
$excel->getCellData([INDEX_OF_ROW], [INDEX_OF_COLUMN]);
GET sheet data as php array
$excel->getSheetData();
Enjoy!
统计信息
- 总下载量: 29.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-05-02