calien/xlsexport
Composer 安装命令:
composer require calien/xlsexport
包简介
Calien - XLS-Exporter
README 文档
README
Export complex data to Excel sheets
What does it do?
This extension helps to export complex data from TYPO3 into spreadsheets.
How does it work?
This extension provides a new backend module for exporting complex data into spreadsheets.
In the default setup the table tt_address can be exported out of the box.
Configuration
The module can be configured by TSconfig. The following snippet has to be added to your PageTS configuration.
This is the Default Setting:
module.tx_xlsexport {
settings {
exports {
# name in settings, could be everything
tt_address {
# label shown in bakcned module
label = Addresses
# counter for selected records to export. String with SQL query
check = SELECT count(*) FROM tt_address where pid=%d and hidden=0 and deleted=0
# export query
export (
select uid,first_name,middle_name,last_name,address,building,room,city,zip,region,country,phone,fax,email,www,title,company from tt_address where pid=%d and deleted=0 and hidden=0
)
# list query, currently unused
list (
select uid,first_name,last_name from tt_address where pid=%d and deleted=0 and hidden=0
)
# SQL table name
table = tt_address
# field names from SQL query for export
exportfields {
10 = uid
20 = first_name
30 = middle_name
40 = last_name
50 = address
60 = building
70 = room
80 = city
90 = zip
100 = region
110 = country
120 = phone
130 = fax
140 = email
150 = www
160 = title
170 = company
}
# labels for export field columns, numbers must match with fields in exportfields
exportfieldnames {
10 = lfd. Nummer
20 = Vorname
30 = Mittelname
40 = Nachname
50 = Adresse
60 = Gebäude
70 = Raum
80 = Stadt
90 = PLZ
100 = Region
110 = Land
120 = Telefon
130 = Fax
140 = E-Mail
150 = Web
160 = Titel
170 = Firma
}
}
}
}
}
which you can either override, or extend in this fashion:
module.tx_xlsexport {
settings {
export {
myExport {
# [...]
}
}
}
}
Relations can be done by joins inside the select statements
TODO:
- add Events/Signalslots for datamanipulation
- add support for multiple sheets
- documentation
- localization
FUTURE: (hit me up if you are willing to help funding)
- support TCA for complex data structures
- update backend module to fit TYPO3 styles
calien/xlsexport 适用场景与选型建议
calien/xlsexport 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.24k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 01 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 calien/xlsexport 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 calien/xlsexport 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-01-08