people_sdk / module_location
Module People SDK: location components
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-10-09 01:25:13 UTC
README
Description
Library contains application modules, to implements location components, to use API location features, on application. Application is considered as LibertyCode application.
Requirement
- Script language: PHP: version 7 || 8
Framework module installation requirement
Module repository: liberty_code_module/validation: version 1.0
- Module validation (or equivalent).
- Module rule (or equivalent).
Module repository: people_sdk/module_library: version 1.0
- Module requisition (or equivalent).
Other module implementation:
DI configuration:
people_requisition_persistor:
See people_sdk/location v1.0 framework library implementation requirement, for persistor.
people_requisition_requester:
See people_sdk/location v1.0 framework library implementation requirement, for requester.
Installation
Several ways are possible:
Composer
Requirement
It requires composer installation. For more information: https://getcomposer.org
Command: Move in project root directory
cd "<project_root_dir_path>"
Command: Installation
php composer.phar require people_sdk/module_location ["<version>"]
Note
Include vendor
If project uses composer, vendor must be included:
require_once('<project_root_dir_path>/vendor/autoload.php');
Configuration
Installation command allows to add, on composer file "
{ "require": { "people_sdk/module_location": "<version>" } }
Include
Download
- Download following repository.
- Put it on repository root directory.
Include source
require_once('<repository_root_dir_path>/include/Include.php');
Application installation
Configuration
Configuration: application module: "
Add in list part, required modules:
Example for YML configuration format, from composer installation:
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 } } ]
Usage
TODO