almaviacx / ibexaimportexportbundle
处理导入/导出的包
dev-feat-importexport-bundle
2024-08-02 13:58 UTC
Requires
- php: ^7.3 || ^8.0
- craue/formflow-bundle: ^3.0
- symfony/uid: ^5.4
Suggests
- matthiasnoback/symfony-console-form: Used to execute workflow from CLI
- phpoffice/phpspreadsheet: Used for the XlsReader
- symfony/messenger: Used to run job asynchronously
This package is auto-updated.
Last update: 2024-09-09 12:25:23 UTC
README
导入/导出工作流
一个 job
触发一个 workflow
一个 workflow
调用一个 reader
获取项目列表,然后使用一系列 step
过滤/修改项目,最后将它们传递给一系列 writer
步骤
一个步骤服务必须实现 AlmaviaCX\Bundle\IbexaImportExport\Step\StepInterface
并具有标签 almaviacx.import_export.component
该包提供了 AlmaviaCX\Bundle\IbexaImportExport\Step\AbstractStep
以简化服务的创建
提供的步骤
AlmaviaCX\Bundle\IbexaImportExport\Step\IbexaContentToArrayStep
将内容转换成关联数组。接受映射作为参数,从内容中提取属性以生成关联数组
关于转换过程的更多说明 在这里
选项包括
- 映射(表示结果关联数组的数组。每个条目值对应于内容的属性。例如:
["title" => "content.fields[title].value"]
)