Download the PHP package utf6/phalapi-excel without Composer

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

PahlApi2.x 接口框架利用 PHPExcel 处理 Excel 文件

附上:

PhalApi 官网地址: http://www.phalapi.net/

1、安装

可以直接在 composer.json 文件中添加

或者直接使用 composer 安装

2、初始化

在 di.php 加入

3、使用

PhalApi-PHPExcel 提供两个基础封装好的方法分别是 exportExcelimportExcel 分别处理导入、导出功能。

exportExcel 接受4个参数,$data 基础数据,$headArr:标题,$filename :文件名称,$type :下载方式(默认 vnd.ms-excel,ajax 导出时为:json)。

下面是一个例子

PhalApi-PHPExcel 可根据导出的文件后缀来导出不同格式的Excel文档

importExcel 接受三个参数:$filename 文件名称,$keys 键名(选默为空, 可接受一个数组(比如数据库字段名)),$Sheet 工作表(默认第一张工作表)

传递键名

当然 PHPExcel 是一个强大的工具可以通过 $PHPExcel->getPHPExcel() 获得完整的 PHPExcel 实例自由使用!


All versions of phalapi-excel with dependencies

PHP Build Version
Package Version
Requires php Version >=5.2
phpoffice/phpspreadsheet Version >=1.14
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 utf6/phalapi-excel contains the following files

Loading the files please wait ....