Download the PHP package szjcomo/excel without Composer

On this page you can find all versions of the php package szjcomo/excel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package excel

Excel类使用说明


命名空间:szjcomo\excel\Excel

excel 数据导出 依赖php扩展 xlswriter 如果您没有安装 请使用 pecl install xlswriter 后加入php.ini 添加 extension = xlswriter.so 到配置 文档地址:https://gitee.com/viest/php-ext-xlswriter#PECL

方法列表:

类型 方法名称 参数说明 方法说明
public construct() 请查看参数说明 构造函数
public sheet() 请查看参数说明 设置sheet表名称
public field() 请查看参数说明 导出字段设置 可使用回调函数
public data() 请查看参数说明 需要导出的数据
public export() 请查看参数说明 实现数据导出
static import() 请查看参数说明 实现数据导入

参数说明:

参数名称 参数类型 是否必传 备注
$config array 是/否 导出时必传
     path string 导出时文件保存目录地址
参数名称 参数类型 是否必传 备注
$sheetName string 表名称
参数名称 参数类型 是否必传 备注
$fields array 字段数组
     key string 字段名称下标
     value array 字段值
          name string 字段下标显示名称
参数名称 参数类型 是否必传 备注
$data array 二维数组,设置需要导出的数据
参数名称 参数类型 是否必传 备注
$saveName string 需要保存的文件名 必须是.xlsx结尾
参数名称 参数类型 是否必传 备注
$fileName string 需要导出入的文件路径 .xlsx .xls
$index int 默认导出第一个工作表
$is_data bool $fileName是否是远程字符串 支持远程文件导入 默认false 本地文件
$debug bool 调试错误信息

使用示例:

一、数据导出
二、数据导入

All versions of excel with dependencies

PHP Build Version
Package Version
Requires shuchkin/simplexlsx Version ^0.8.9
shuchkin/simplexls Version ^0.9.4
php Version >=5.6
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package szjcomo/excel contains the following files

Loading the files please wait ....