people_sdk / module_location
People SDK模块:位置组件
v1.0.0
2024-02-08 23:32 UTC
Requires
- php: ~7 || ~8
- liberty_code/di: ^1.0.
- people_sdk/library: ^1.0.
- people_sdk/location: ^1.0.
This package is auto-updated.
Last update: 2024-09-09 01:04:32 UTC
README
描述
该库包含应用程序模块,用于实现位置组件,以使用API位置功能。应用程序被视为LibertyCode应用程序。
需求
- 脚本语言:PHP:版本 7 或 8
框架模块安装要求
模块仓库:liberty_code_module/validation:版本 1.0
- 模块验证(或等效)。
- 模块规则(或等效)。
模块仓库:people_sdk/module_library:版本 1.0
- 模块需求(或等效)。
其他模块实现
DI配置
people_requisition_persistor
请参阅people_sdk/location v1.0框架库实现要求,以获取持久化器。
people_requisition_requester
请参阅people_sdk/location v1.0框架库实现要求,以获取请求者。
安装
有几种可能的方式
Composer
需求
需要安装composer。更多信息: https://getcomposer.org.cn
命令:在项目根目录中移动
cd "<project_root_dir_path>"
命令:安装
php composer.phar require people_sdk/module_location ["<version>"]
注意
包含供应商
如果项目使用composer,则必须包含供应商
require_once('<project_root_dir_path>/vendor/autoload.php');
配置
安装命令允许在composer文件中添加
{ "require": { "people_sdk/module_location": "<version>" } }
包含
下载
- 下载以下仓库。
- 将其放在仓库根目录中。
包含源代码
require_once('<repository_root_dir_path>/include/Include.php');
应用程序安装
配置
配置:应用程序模块:"
在列表部分添加所需模块
YML配置格式示例,从composer安装
list: [ { path: "/vendor/people_sdk/module_location/src/datetime", 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_location/src/config", 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 } } ]
用法
待办事项