people_sdk/attribute

Library People SDK: attribute components

v1.0.0 2023-04-07 19:35 UTC

This package is auto-updated.

Last update: 2024-04-07 21:54:48 UTC


README

Description

Library contains attribute components, to implements attribute tools, to manage handle model features, using API attribute features.

Requirement

  • Script language: PHP: version 7 || 8

Framework library implementation requirement

  1. Library repository: liberty_code/parser: version 1.0

    • String table parser factory implementation:

      Data HTTP response instances, used via requester, provided on repository, must be able to use string table parser factory features (or equivalent), allowing to provide JSON string table parser instances.

  2. Library repository: liberty_code/validation: version 1.0

    • Standard rules implementation (or equivalent):

      Validator provided on entities, must contain all standard rules, added on its rule collection.

    • Validator rules implementation (or equivalent):

      Validator provided on entities, must contain all validator rules, added on its rule collection. Each validator rule must use validator, with same implementation as validator provided on entities.

  3. Library repository: liberty_code/http: version 1.0

    • HTTP request factory implementation:

      Requester, provided on repository, must be able to use HTTP request factory features (or equivalent), allowing to provide HTTP request instances.

    • HTTP response factory implementation:

      Requester, provided on repository, must be able to use HTTP response factory features (or equivalent), allowing to provide data HTTP response instances.

    • HTTP client implementation:

      Requester, provided on repository, must be able to use HTTP client features (or equivalent), to execute HTTP request sending.

Installation

Several ways are possible:

Composer

  1. Requirement

    It requires composer installation. For more information: https://getcomposer.org

  2. Command: Move in project root directory

     cd "<project_root_dir_path>"
    
  3. Command: Installation

     php composer.phar require people_sdk/attribute ["<version>"]
    
  4. 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 "/composer.json", following configuration:

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

Include

  1. Download

    • Download following repository.
    • Put it on repository root directory.
  2. Include source

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

Usage

TODO