people_sdk / module_item
People SDK 模块:项目组件
Requires
- php: ~7 || ~8
- liberty_code/cache: ^1.0.
- liberty_code/config: ^1.0.
- liberty_code/di: ^1.0.
- liberty_code/framework: ^1.0.
- liberty_code/library: ^1.0.
- liberty_code/register: ^1.0.
- people_sdk/app_profile: ^1.0.
- people_sdk/group: ^1.0.
- people_sdk/item: ^1.0.
- people_sdk/library: ^1.0.
- people_sdk/user_profile: ^1.0.
This package is auto-updated.
Last update: 2024-09-04 21:15:46 UTC
README
描述
库包含应用程序模块,实现项目组件,使用API项目功能,在应用程序上。应用程序被视为LibertyCode应用程序。
要求
- 脚本语言:PHP:版本 7 || 8
框架模块安装要求
模块仓库:liberty_code_module/validation:版本 1.0
- 模块验证(或等效)。
- 模块规则(或等效)。
模块仓库:liberty_code_module/datetime:版本 1.0
- 模块 datetime(或等效)。
模块仓库:liberty_code_module/handle_model:版本 1.0
- 模块属性(或等效)。
模块仓库:people_sdk/module_library:版本 1.0
- 模块需求(或等效)。
模块仓库:people_sdk/module_attribute:版本 1.0
- 模块类型(或等效)。
模块仓库:people_sdk/module_user_profile:版本 1.0
- 模块用户(或等效)。
模块仓库:people_sdk/module_app_profile:版本 1.0
- 模块应用(或等效)。
模块仓库:people_sdk/module_group:版本 1.0
- 模块组(或等效)。
其他模块实现
依赖注入配置
people_requisition_persistor
有关持久化程序的要求,请参阅 people_sdk/item v1.0 框架库实现要求。
安装
有几种可能的方法
Composer
要求
需要安装 composer。更多信息请参阅:https://composer.php.ac.cn
命令:在项目根目录中移动
cd "<project_root_dir_path>"命令:安装
php composer.phar require people_sdk/module_item ["<version>"]注意
包含供应商
如果项目使用 composer,则必须包含供应商
require_once('<project_root_dir_path>/vendor/autoload.php');配置
安装命令允许在 composer 文件中添加
{ "require": { "people_sdk/module_item": "<version>" } }
包含
下载
- 下载以下仓库。
- 将其放在仓库根目录中。
包含源代码
require_once('<repository_root_dir_path>/include/Include.php');
应用程序安装
配置
配置:应用程序模块:"
在列表部分添加所需模块
YML 配置格式示例,来自 composer 安装
list: [ { path: "/vendor/people_sdk/module_item/src/schema", 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_item/src/schema_attribute", 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_item/src/schema_relation", 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_item/src/category", 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_item/src/area", 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_item/src/area_attribute_scope", 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_item/src/area_relation_scope", 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_item/src/area_category_scope", 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_item/src/area_member", 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_item/src/area_group_member", 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_item/src/item", 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_item/src/item_relation", 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_item/src/item_category", 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_item/src/cache", 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可配置元素
参数模式工厂配置
参数模式属性工厂配置
参数模式属性提供者配置
参数模式关系工厂配置
参数类别工厂配置
参数区域工厂配置
参数区域属性范围工厂配置
参数区域关系范围工厂配置
参数区域类别范围工厂配置
参数区域成员工厂配置
参数区域组成员工厂配置
参数项目工厂配置
参数项目关系工厂配置
参数项目类别工厂配置
参数项目缓存配置
用法
待办事项