d3yii2/d3horizon

There is no license information available for the latest version (dev-main) of this package.

Horizon API module

dev-main 2022-10-21 07:50 UTC

This package is auto-updated.

Last update: 2024-04-16 14:47:50 UTC


README

#Horizon API module Yii2 modulis Horizon RESTam https://horizon-rest-doc.visma.lv/lv

Features

Modeļi

  • TNdmNom

Modeļu funkcionalitāte

  • save() kā insert
  • save() kā update
  • findOne($id)
  • findOne(['fieldName'=>$fieldValue])
  • delete()

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require d3yii2/d3horizon "*"

or add

"d3yii2/d3horizon": "*"

to the require section of your composer.json file.

Connection settings

Definē kā komonenti

        'horizonRest' => [
            'class' => 'd3yii2\d3horizon\components\RestConnection',
            'baseUrl' => getenv('HORIZON_API_BASE_URL'),
            'horizonApiUsername' => getenv('HORIZON_API_USERNAME'),
            'horizonApiPassword' => getenv('HORIZON_API_PASSWORD'),
            'enableExceptions' => true,
        ],

Methods

Usage

Examples