定制 os2forms/os2forms_fasit 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

os2forms/os2forms_fasit

最新稳定版本:1.2.0

Composer 安装命令:

composer require os2forms/os2forms_fasit

包简介

OS2Forms Fasit integration

README 文档

README

Adds Fasit Schultz handler for archiving purposes.

Installation

composer require os2forms/os2forms_fasit
vendor/bin/drush pm:enable os2forms_fasit

Settings

Configure Fasit API base url and a way of getting certificate on /admin/os2forms_fasit/settings.

Certificate

The certificate must be in pem or cer format and must be whitelisted by Fasit Schultz. For this the certificate thumbprint, in lowercase and without colons, is needed. To get the thumbprint in the correct format from the command line run

openssl x509 -in SOME_CERTIFICATE.pem -noout -fingerprint |  cut -d= -f2 | sed 's/://g' | tr '[:upper:]' '[:lower:]'

Example output

6acb261f393172d87fa3997cec86569759a8528a

Queue

Archiving is done via an Advanced Queue called fasit_queue.

The queue should be processed with drush:

drush advancedqueue:queue:process fasit_queue

List the queue (and all other queues) with

drush advancedqueue:queue:list

or go to /admin/config/system/queues/jobs/fasit_queue for a graphical overview of jobs in the queue.

Cronjob

Consider running the queue via a cronjob.

*/5 * * * * /path/to/drush advancedqueue:queue:process fasit_queue

Coding standards

Check coding standards:

// PHP CS Fixer
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer install
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer coding-standards-check

// Markdownlint
docker run --rm --interactive --tty --volume ${PWD}:/app node:20 yarn --cwd /app install
docker run --rm --interactive --tty --volume ${PWD}:/app node:20 yarn --cwd /app coding-standards-check

Apply coding standards:

docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer coding-standards-apply
docker run --rm --interactive --tty --volume ${PWD}:/app node:20 yarn --cwd /app coding-standards-apply

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-02-26