Download the PHP package kytoonlabs/laravel-helm without Composer
On this page you can find all versions of the php package kytoonlabs/laravel-helm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kytoonlabs/laravel-helm
More information about kytoonlabs/laravel-helm
Files in kytoonlabs/laravel-helm
Package laravel-helm
Short Description Laravel wrapper for HELM v3
License Apache-2.0
Informations about the package laravel-helm
Laravel Helm Package
This package provides a wrapper to invoke HELM commands using PHP code.
Installing
Installing can be done through a variety of methods, although Composer is recommended.
Composer (recommended)
Include the following snipped into the composer.json file.
or by using the composer require
command:
Github
Releases are available on Github.
Configuration
In order to use the Laravel Helm package, is required to setup the right path where the HELM binary is located on the server.
Laravel Helm uses the path /usr/local/bin/helm
by default, but it can be configured using an environment variable defined into the .env
Other configurations
How to use
The current version of the package implements the following commands:
- helm version
- helm install
- helm upgrade
- helm delete
Also implements a method rawCommand
where any other command can be executed.
Helm::version
Helm::install($name, $chart, $options, $envs)
Parameters:
- name: installation name (required)
- chart: helm chart (required)
- options: options array (optional)
- envs: environment variables array (optional)
Helm::upgrade($name, $chart, $options, $envs)
Parameters:
- name: installation name (required)
- chart: helm chart (required)
- options: options array (optional)
- envs: environment variables array (optional)
Helm::delete($name, $options, $envs)
Parameters:
- name: installation name (required)
- options: options array (optional)
- envs: environment variables array (optional)
Helm::rawCommand($command, $options, $envs)
Parameters:
- command: string command to be executed (required)
- options: options array (optional)
- envs: environment variables array (optional)
Parsing $options array
The most of the methods for the Helm object uses the $options
array. This is an example how the option are being parsed:
Injecting environment variables using $envs
If is required to include environment variables to the helm execution context, this can be done using the $envs
array.
Testing
In order to validate that the package is fully functional always we can run:
License
Laravel Helm package is licensed under the Apache 2.0. See the LICENSE file for details.
Support
Issues can be opened directly in Github.