<?php namespace Phpcmf\Controllers;
use PhpOffice\PhpSpreadsheet\Reader\Xlsx;
use PhpOffice\PhpSpreadsheet\Reader\Xls;
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Worksheet\PageSetup;
use PhpOffice\PhpSpreadsheet\Cell\DataType;
use PhpOffice\PhpSpreadsheet\Style\Fill;
use PhpOffice\PhpSpreadsheet\Style\Color;
use PhpOffice\PhpSpreadsheet\Style\Alignment;
use PhpOffice\PhpSpreadsheet\Style\Border;
use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
class Test extends \Phpcmf\Common
{
public function index() {
$objRead = IOFactory::createReader('Xlsx');
var_dump($objRead);
}
}
建dayrui\App\Demo\Config\Auto.php键\dayrui\App\Demo\Controllers\Test.php/index.php?s=demo&c=test这个方法是最快捷的,引入方法很多看个人习惯了