d3yii2 / d3horizon
Horizon API module
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
pkg:composer/d3yii2/d3horizon
Requires
- ext-libxml: *
- ext-simplexml: *
- guzzlehttp/guzzle: 7.4.5
- simialbi/yii2-rest-client: 2.0.0
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-09-16 18:20:49 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, ],