pharmaintelligence/gstandaard-bundle

Z-Index (http://www.z-index.nl) 的 Propel 绑定

dev-master 2023-12-14 14:02 UTC

This package is auto-updated.

Last update: 2024-09-14 15:27:15 UTC


README

Total Downloads

此捆绑包受 MIT 许可证 许可。

GStandaard捆绑包包含Z-Index数据集的propel绑定和导入任务。

要求

  • Symfony 2.4.x
  • Propel捆绑包 1.4.x
  • PHP CURL 扩展
  • 请参阅 composer.jsonrequire 部分

安装

使用 composer require pharmaintelligence/gstandaard-bundle 安装最新版本

文档

设置

GStandaard-Bundle通过propel设置钩入您的项目。通过使用 propel:model:buildpropel:migration:* 任务来设置您的表和om类。

config.yml需要两个参数

# app/config.yml
pharma_intelligence_gstandaard:
    user: '%gstandaard_user%'
    password: '%gstandaard_user%'
# app/parameters.yml
gstandaard_user: username
gstandaard_password: password

这些参数是从Z-Index收到的用于下载G-Standaard的用户名/密码。

导入G-Standaard

在您的项目目录中运行: php app\console pharma-intelligence:g-standaard:import 使用 --alleenMutaties 选项可以加速导入过程,只处理已更改的字段。

使用方法

通过G-Standaard提供的所有表都可在本捆绑包中使用,使用方法是propel的查询和om类。

额外奖励

可额外使用一个表:gs_artikel_eigenschappen。此表是一个非规范化表,包含所有Z-Index数字的最常用的属性。

通过服务容器注册了 pi.gstandaard.barcode_service。它允许用户根据条形码搜索产品。

贡献

欢迎拉取请求。