定制 roorda-ict/statamic-entries-export 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

roorda-ict/statamic-entries-export

Composer 安装命令:

composer require roorda-ict/statamic-entries-export

包简介

README 文档

README

Banner

This is a simple package that exports your entries to xlsx/csv/ods/html format.

Features

  • Exporting entries from the collection listings.
  • Exporting a full collection from the utility page.
  • Tries to export to a human-readable format. This means that linked Entries will not export id's but their titles, the same goes for linked users etc.

Installation

To install this addon, use composer to require the package in your project:

composer require roorda-ict/statamic-entries-export

Usage

Usage is pretty easy:

  • For a subset of entries: navigate to a collection listing and start exporting entries.
  • For an entire collection of entries: go to Utilities > Export entries, choose your collection and click the 'Export entries' button.

Configuration

If you want to update any of the defaults, start by publishing your configuration file:

php artisan vendor:publish --provider=RoordaIct\\EntriesExport\\ServiceProvider

This will publish the entries-export.php file to the config directory. This is the file you need to update to make any configuration changes.

More granular export permission

By default, users that have the 'Utilities > Export entries' permission can export the entries that they may view. If you want to make this stricter, you can update the config and set it to whatever you like. For example, you might only want to let users export the entries that they may update.

To do this you update the value of the permission key from view to update in the configuration file.

Export format

By default, we export to the ods format, however you can configure this to any supported format. The supported formats are found in the configuration file, at the export_format key.

Excluding field types

By default, we do not export the section and hidden field types. If you need to add or remove field types, update the value of the excluded_field_types key in the configuration file.

Excluding collections

If you want to exclude certain collections from being exported, you can add them to the excluded_collections key in the configuration file.

Custom exporter

If you want more control in how your export is generated, you can create your own exporter. Make sure to extend the RoordaIct\EntriesExport\Exports\EntryCollectionExport class.

The heavy lifting of creating the Excel sheet is done through the Laravel Excel library. If you need more support on how to create your own exportable, please refer to their documentation.

After you created your own exporter, you can update the value of the exporter key in the configuration file.

roorda-ict/statamic-entries-export 适用场景与选型建议

roorda-ict/statamic-entries-export 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 76.91k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 06 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 roorda-ict/statamic-entries-export 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 roorda-ict/statamic-entries-export 我们能提供哪些服务?
定制开发 / 二次开发

基于 roorda-ict/statamic-entries-export 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-06-19