Download the PHP package yanggs07/yii2-salt-api without Composer
On this page you can find all versions of the php package yanggs07/yii2-salt-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-salt-api
Usages
Before using this salt-api PHP SDK, enable salt-api for salt master is required.
Salt-api Installation And Configuration
see salt-api
Install salt-api for linux
Generate self-signed cert with correct api host domain
Later we would use https://salt-master.server:8000
for remote api call and use custom CA cert file.
Copy the CA public key file /etc/pki/tls/certs/salt-master.server.crt
to your PHP project path.
Configure salt-api and salt-master
Ensure the master conf include master.d
:
Create new api conf:
Create salt-api user with YOUR password!
Create auth conf:
Restart services:
SDK DEMO Code
tes.php
:
``
TODOs
- More api calls
- Session persistence with cache interface
- Better exception treatment
- more...
All versions of yii2-salt-api with dependencies
PHP Build Version
Package Version
Requires
lspbupt/yii2-curl Version
dev-master
php Version >=7.4
yiisoft/yii2 Version ~2.0
ext-curl Version *
php Version >=7.4
yiisoft/yii2 Version ~2.0
ext-curl Version *
The package yanggs07/yii2-salt-api contains the following files
Loading the files please wait ....