convenia/excel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

convenia/excel

最新稳定版本:3.1.7

Composer 安装命令:

composer require convenia/excel

包简介

Fork of Maatwebsite for reasons of incompatibility with php >= 7.4 --- of Supercharged Excel exports in Laravel

README 文档

README

This repository is a fork of Maatwebsite/Laravel-Excel to keep using v2 with php >=7.4

Excel::create('Laravel Excel', function($excel) {

    $excel->sheet('Excel sheet', function($sheet) {

        $sheet->setOrientation('landscape');

    });

})->export('xls');

Installation

Require this package in your composer.json and update composer. This will download the package and PHPExcel of PHPOffice.

composer require "convenia/excel:~2.2.*"

In Laravel 5.5 or higher, this package will be automatically discovered and you can safely skip the following two steps.

If using Laravel 5.4 or lower, after updating composer, add the ServiceProvider to the providers array in config/app.php

Maatwebsite\Excel\ExcelServiceProvider::class,

You can use the facade for shorter code; if using Laravel 5.4 or lower, add this to your aliases:

'Excel' => Maatwebsite\Excel\Facades\Excel::class,

The class is bound to the ioC as excel

$excel = App::make('excel');

To publish the config settings in Laravel 5 use:

php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"

This will add an excel.php config file to your config folder.

Documentation

The complete documentation can be found at: https://laravel-excel.maatwebsite.nl/docs

License

MIT

统计信息

  • 总下载量: 7.82k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 1964
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-20