plugin/owc-mijn-services 问题修复 & 功能扩展

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

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

plugin/owc-mijn-services

Composer 安装命令:

composer require plugin/owc-mijn-services

包简介

Retrieve information from ZGW to show in Mijn Services

README 文档

README

OWC Mijn Services is a WordPress plugin built around custom Gutenberg blocks that integrate with ZGW (Zaakgericht Werken) APIs. These blocks are the foundation of the plugin, allowing you to easily configure, and display data—directly within the WordPress block editor.

Installation

Manual installation

  1. Upload the 'owc-mijn-services' folder in to the /wp-content/plugins/ directory.
  2. cd /wp-content/plugins/owc-mijn-services
  3. Run composer install, NPM asset build is in version control already.
  4. Activate the plugin in via the WordPress admin.

Composer installation

  1. composer source git@github.com:OpenWebconcept/plugin-owc-mijn-services.git
  2. composer require plugin/owc-mijn-services
  3. cd /wp-content/plugins/owc-mijn-services
  4. Run composer install, NPM asset build is in version control already.

Configure your project

To use this plugin, make sure the following pages exist in your WordPress installation:

  • A single page for a Zaak that contains the owc-my-services/zaak block.
  • A single page for a Zaak download, no blocks required.
  • A page (any type) that contains the owc-my-services/mijn-zaken block.

Gutenberg blocks

owc-my-services/zaak

This block displays all data for a single Zaak. Selecting a ZGW API supplier is the only configuration required in the block settings.

owc-my-services/mijn-zaken

This block displays an overview of all Zaken, filtered by the selected supplier and the social security number (BSN) of the currently logged-in citizen.

NLDS Components

Both owc-my-services/zaak and owc-my-services/mijn-zaken blocks use components from the NLDS (Nederlandse Design System).

  • The NLDS React components and CSS are automatically loaded when a block is placed on the page.
  • The project should have NLDS design tokens available to ensure styling.

Logging

Enable logging to keep track of errors during communication with the ZGW supplier(s).

  • Logs are written daily to owc-my-services-log{-date}.json in the WordPress webroot directory.
  • A rotating file handler keeps up to 7 log files by default, deleting the oldest as needed.
  • You can change the maximum number of log files using the filter described below.

General settings example

Hooks

Customizing Template Paths

You can customize the template paths by using the following filter in your theme or another plugin:

add_filter('owcms::view/template-paths', function ($paths) {
    $paths[] = get_stylesheet_directory() . '/resources/views/owc-mijn-services';

    return $paths;
});

To prioritize your custom template path over the default ones, use this example:

add_filter('owcms::view/template-paths', function ($paths) {
    $paths[] = get_stylesheet_directory() . '/resources/views/owc-mijn-services';

    return array_reverse($paths);
});

Change the maximum number of log files

Use the following filter to alter the rotating file handler's max files setting:

apply_filters('owcms::logger/rotating_filer_handler_max_files', OWC_MY_SERVICES_LOGGER_DEFAULT_MAX_FILES)

Intercept exceptions for custom handling

Intercept exceptions caught by the plugin for additional processing or custom logging using this action:

do_action('owcms::exception/intercept', $exception, $method)

The $exception parameter contains the caught exception object

Restricting page access based on authentication requirements

Pages can be protected by enforcing specific authentication methods, such as DigiD and/or eHerkenning. These access rules are configured through the Security metabox in the page editor.

By default, only the page post type supports access restrictions. This can be customized using the following filter:

apply_filters( 'owcms::gatekeeper/metabox_post_types', array( 'page' ) )

Configure number of redirection posts as option

Defaults to fetching all posts for the configured post types. Increase or limit this value when the query becomes too heavy by applying the filter below:

apply_filters( 'owcms::gatekeeper/metabox_number_of_redirect_options', -1 )

plugin/owc-mijn-services 适用场景与选型建议

plugin/owc-mijn-services 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 597 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 12 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 plugin/owc-mijn-services 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-12-04