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
-
Login on GitHub
-
Use this template
-
Name your Bundle (CamelCase). The bundle needs to end with
Bundleas per Symfony naming conventions. -
Press the green button
Create repository from template -
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
nameandnamespace. The namespace should be the same as your package name incomposer.jsonbut in CamelCase. Socommon-gateway/sim-xml-to-zgw-bundlebecomesCommonGateway/SimXMLToZGWBundle - Rename the
/Serviceand/ActionHandleraccordingly (or delete if not used). - Rename the
/DependencyInjection/SimXMLToZGWExtension.phpto yourBundleNameExtension.php - Rename the
/Resources/config/services.yamlnamespaces
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
$idto 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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 common-gateway/sim-xml-to-zgw-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
The bundle for easy using json-rpc api on your project
Load DOM document safety
Bundle Symfony DaplosBundle
Added a method to Laravel response for handling xml response and also converting Eloquent return to XML.
统计信息
- 总下载量: 122
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: EUPL-1.2
- 更新时间: 2023-05-23