承接 websix/xlsx-compiler 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

websix/xlsx-compiler

最新稳定版本:1.1.3

Composer 安装命令:

composer require websix/xlsx-compiler

包简介

Xlsx compiler aimed in to be simple, fast and straight to the point

README 文档

README

Build Status

Takes a JSON in format:

{
    "Sheet name": [
        {"A": "A1 Value", "B": "B1 Value"}, // Row
        ...
    ],
    ...
    "Last sheet name": [
        {"A": "A1 Value", "B": "B1 Value"} // Row
    ],
    "maxCols": 2 // Max number of columns to be presented in the sheet
}

And transforms into a .xlsx file.

Usage

Install the package:

composer require websix/xlsx-compiler

Use the XlsxCompiler class in your script:

<?php

...
uses Websix\XlsxCompiler\XlsxCompiler;

...
$compiler = new XlsxCompiler();

// Generate $json in the shown format before

$xlsx = $compiler->compileJson($json);

// In $xlsx you have the fileblob tha you can save into a .xlsx file or echo in
// the output for browser download

API

Namespace: Websix\XlsxCompiler;

Class name: XlsxCompiler

#compileJson($json) -> blob

Pass in $json a JSON formatted as above and the result will be the xlsx blob

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固