common-gateway/sim-xml-to-zgw-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

common-gateway/sim-xml-to-zgw-bundle

Composer 安装命令:

composer require common-gateway/sim-xml-to-zgw-bundle

包简介

Symfony bundle for translating SimXML messages into ZGW objects

README 文档

README

This repository is for creating PHP Symfony flex bundles. The Common Gateway ecosystem uses this template for rapid development to extend Gateway functionlity outside of the Core.

The first section is about installing plugins. The latter part is about custom plugins to extend Common Gateway functionality.

Installation with the Common Gateway admin user-interface

Once a bundle is set up correctly (like this repository), the Common Gateway can discover the bundle without additional configuration. Head to the Plugins tab to search, select and install plugins.

Installing with PHP commands

To execute the following command, you will need Composer or a dockerized installation that already has PHP and Composer.

The Composer method in the terminal and root folder:

for the installation of the plugin

$composer require common-gateway/sim-xml-to-zgw-bundle:dev-main

for the installation of schemas

`$php bin/console commongateway:install common-gateway/sim-xml-to-zgw-bundle

The dockerized method in the terminal and root folder:

for the installation of the plugin

$docker-compose exec php composer require common-gateway/sim-xml-to-zgw-bundle:dev-main

for the installation of schemas

$docker-compose exec php bin/console commongateway:install common-gateway/sim-xml-to-zgw-bundle

Creating your Bundle

This section is for developers who want to build plugins to extend Common Gateway functionality without adding to the core codebase.

The following knowledge is assumed and/or installed:

Composer Packagist Docker Schema.json Basic knowledge of the Common Gateway

Using this template

This template is for rapid Symfony bundle development and meant as a model to base your custom plugin on. Follow the next steps to create your plugin within 45 minutes or less

  1. Login on GitHub

  2. Use this template

  3. Name your Bundle (CamelCase). The bundle needs to end with Bundle as per Symfony naming conventions.

  4. Press the green button Create repository from template

  5. Update file names and namespace to your fitting :

    • Open composer.json, and change the name to your fitting. The first word should be the namespace, and the second the bundle's name.

    Note: this is kebab-case. Also read: naming your package

    • Check the autoload field to be set accordingly.
    • Open SimXMLToZGWBundle.php and change the Bundle name and namespace. The namespace should be the same as your package name in composer.json but in CamelCase. So common-gateway/sim-xml-to-zgw-bundle becomes CommonGateway/SimXMLToZGWBundle
    • Rename the /Service and /ActionHandler accordingly (or delete if not used).
    • Rename the /DependencyInjection/SimXMLToZGWExtension.php to your BundleNameExtension.php
    • Rename the /Resources/config/services.yaml namespaces

Adding schemas

You can load json schemas as Entities from your /Schema folder to use in the Common Gateway and work with objects based on your schemas.

You can add existing schemas or create your own and add them to the/Schema folder. There is an example shown here in /Schema/example.json.

The following properties are required, and without them, the Gateway won't recognize the schema as valid:

- `version` can start on '0.1.0.' 

without this property, you can't update schemes

- `$schema` (https://docs.commongateway.nl/schemas/Entity.schema.json)
- `$id` (https://example.com/schema/{Your scheme name}.schema.json)

Unique $id to be relatable to other schemas.

- `type` must be 'object'
- `properties` must be schema properties

Once you add schemas to the repository, you can also add objects/data for those schemas. There is an example shown in the /Data folder.

common-gateway/sim-xml-to-zgw-bundle 适用场景与选型建议

common-gateway/sim-xml-to-zgw-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 122 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 05 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「symfony」 「xml」 「gateway」 「common」 「sim」 「conduction」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 common-gateway/sim-xml-to-zgw-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 common-gateway/sim-xml-to-zgw-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: EUPL-1.2
  • 更新时间: 2023-05-23