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
- Upload the 'owc-mijn-services' folder in to the
/wp-content/plugins/directory. cd /wp-content/plugins/owc-mijn-services- Run composer install, NPM asset build is in version control already.
- Activate the plugin in via the WordPress admin.
Composer installation
composer source git@github.com:OpenWebconcept/plugin-owc-mijn-services.gitcomposer require plugin/owc-mijn-servicescd /wp-content/plugins/owc-mijn-services- 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}.jsonin 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.
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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 597
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-12-04
