people_sdk/module_space_auth_key

People SDK 模块:空间认证密钥组件

v1.0.0 2024-06-09 16:09 UTC

This package is auto-updated.

Last update: 2024-09-09 16:47:36 UTC


README

描述

库包含应用模块,实现空间认证密钥组件,使用API空间认证密钥功能,在应用中。应用被视为LibertyCode应用。

要求

  • 脚本语言:PHP:版本 7 或 8

框架模块安装要求

  1. 模块仓库:liberty_code_module/validation:版本 1.0

    • 模块验证(或等效)。
    • 模块规则(或等效)。
  2. 模块仓库:liberty_code_module/datetime:版本 1.0

    • 模块 datetime(或等效)。
  3. 模块仓库:people_sdk/module_library:版本 1.0

    • 模块 requisition(或等效)。
  4. 其他模块实现

    • DI 配置

      • people_requisition_persistor

        请参阅 people_sdk/space_auth_key v1.0 框架库实现要求,以了解持久化器。

      • people_requisition_config.

安装

有几种可能的方式

Composer

  1. 要求

    需要安装 composer。更多信息请访问:https://getcomposer.org.cn

  2. 命令:在项目根目录下移动

     cd "<project_root_dir_path>"
    
  3. 命令:安装

     php composer.phar require people_sdk/module_space_auth_key ["<version>"]
    
  4. 注意

    • 包含 vendor

      如果项目使用 composer,则必须包含 vendor

        require_once('<project_root_dir_path>/vendor/autoload.php');
      
    • 配置

      安装命令允许在 composer 文件 "

        {
            "require": {
                "people_sdk/module_space_auth_key": "<version>"
            }
        }
      

包含

  1. 下载

    • 下载以下仓库。
    • 将其放在仓库根目录。
  2. 包含源代码

     require_once('<repository_root_dir_path>/include/Include.php');
    

应用安装

配置

  1. 配置:应用程序模块:"

    在列表部分添加所需模块

    从 composer 安装示例 YML 配置格式

     list: [
         {
             path: "/vendor/people_sdk/module_space_auth_key/src/auth_key",
             config_parser: {
                 type: "string_table_php",
                 source_format_get_regexp: "#^\\<\\?php\\s*(.*)(\\s\\?\\>)?\\s*$#ms",
                 source_format_set_pattern: "<?php \\n%1$s",
                 cache_parser_require: true,
                 cache_file_parser_require: true
             }
         },
         {
             path: "/vendor/people_sdk/module_space_auth_key/src/requisition",
             config_parser: {
                 type: "string_table_php",
                 source_format_get_regexp: "#^\\<\\?php\\s*(.*)(\\s\\?\\>)?\\s*$#ms",
                 source_format_set_pattern: "<?php \\n%1$s",
                 cache_parser_require: true,
                 cache_file_parser_require: true
             }
         }
     ]
    

配置

应用程序参数配置

  • 在您的模块中使用以下文件来配置特定元素

      <module_root_path>/config/ParamApp.php
    
  • 可配置元素

    • 空间认证密钥工厂的配置

    • 空间认证密钥请求发送信息工厂的配置

用法

待办事项