Download the PHP package ezijing/hyperf-excel without Composer

On this page you can find all versions of the php package ezijing/hyperf-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 hyperf-excel

Table of Contents generated with DocToc

hyperf-excel

安装准备

1、确保在项目中安装了hyperf验证器

2、添加验证中间件 config/autoload/middlewares.php

3、添加异常处理器 config/autoload/exceptions.php

安装

1、在项目根目录下执行

2、发布配置文件

3、配置文件 config/autoload/excel_plugin.php

4、配置异常处理 app/Exception/Handler/AppExceptionHandler.php

使用

1、导出单个sheet的excel到本地

2、从浏览器导出单个sheet的excel

3、导出多个sheet的excel到本地

4、从浏览器导出多个sheet的excel

5、导入单个sheet的excel

测试数据

ID 用户名 部门 职位
1 小明 运营部 产品运营
2 小王 技术部 PHP

(1) 本地导入

代码
导入结果

(2) 接口导入

请求方式

POST

请求的类型

form-data

请求参数
参数 类型
file text
代码
导入结果

All versions of hyperf-excel with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
ext-swoole Version >=4.5
hyperf/config Version 2.2.*
hyperf/constants Version 2.2.*
hyperf/di Version 2.2.*
hyperf/framework Version 2.2.*
hyperf/utils Version 2.2.*
hyperf/validation Version 2.2.*
phpoffice/phpspreadsheet Version 1.*
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 ezijing/hyperf-excel contains the following files

Loading the files please wait ....