定制 ryodevz/phpexport 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ryodevz/phpexport

Composer 安装命令:

composer require ryodevz/phpexport

包简介

README 文档

README

phpexport is a library for exporting HTML to PDF, Excel, or DOCX.

Installation

Use the package manager composer to install phpexport.

composer require ryodevz/phpexport

Usage

<?php

use Ryotwell\Phpexport\Support\Facade\Export;

// Init the class
$exporter = new Export;

// The html
$html = '<h1>Lorem ipsum dolor sit amet consectetur adipisicing elit. Error, ratione.</h1>';

// Export to PDF and download
$exporter->makePDF($html)
    ->download('document.pdf'); // This parameter is optional, with the default value of 'filename.pdf'.

// Export to PDF and preview
$exporter->makePDF($html)
    ->preview(); // The method preview() is only available for PDF

// Export to Excel and download
$exporter->makeExcel($html)
    ->download();

// Export to MSWord and download
$exporter->makeWord($html)
    ->download();

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固