Download the PHP package devstub/kubernetes-api-php-client without Composer

On this page you can find all versions of the php package devstub/kubernetes-api-php-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package kubernetes-api-php-client

This project is not being maintained, you should use something else.

kubernetesAPI-PHP-client

PHP client library for the Kubernetes API

Current Version : v0.1.0

Contents

Usage

Basic Usage

How to use the library

For most of the functionality Client supports 3 ways of setting properties and options. Not all 3 ways are always supported yet so check the each object and it's method for it support

  1. Explicitly instantiating objects and passing them as properties

  2. Implicit creation of object by not setting the param

  3. Passing a json string as an argument

    In below example we are just passing the full service request as json

Configuration

Before any requests can be made with the client you will need to setup some configuration options.

Following options are available

setSslVerify($value) $value = TRUE | FALSE - defaults: [TRUE] Set it to false when you don't want to verify the SSL cert. (Useful for development)

setAPINodeUrl($value) $value = String Set it to the full url of the Kubernetes API server. Note: don't include the version path portion. It is added by the client.

setAPIVersion($value) $value = String - defaults: [v1beta1] Set the version of the API Schema

setAuthType($value) $value = String - defaults: [Config::AUTH_TYPE_HTTP_BASIC] Options: Config::AUTH_TYPE_HTTP_BASIC, Config::AUTH_TYPE_NONE At this time only one type of auth type is supported

setAuthOptions($value) $value = Array *Options: username, password Set the array which provides auth data based on the authType Selected

setConnectionAdapter($value) $value = String - defaults: [Config::CONNECTION_ADAPTER_GUZZLE] *Options: CONNECTION_ADAPTER_GUZZLE Sets the type of rest http adapter to use, currently only guzzle is supported.

Configuration setting Example:

API Endpoints

To make requests to the API endpoints you call endpoint methods on the client object, which returns an endpoint object on which you can call: create, update, delete and get methods.

Available endpoint methods on the client object:

Response

All of the requests will return an instance AdapterResponse class. With it you can check the status of the response:

or retrieve the response content as JSON :

or as nested objects :

For a full list of available kubernetes entities check the \DevStub\KubernetesAPIClient\Entity namespace

Installation

Requirements

Easies way to retrieve all of the dependencies is by using composer

Install with composer

The recommended way is to use Composer to install the kubernetes PHP API Client

Next run composer to install the latest version of the kubernetes PHP API Client:

And don't forget to require the autoloader in your project:

Alternatively you can also specify the dependency in your exisitng composer.json

To do

About

License

Kubernetes PHP API Client is licensed under Apache 2.0

Author

Faruk Brbovic, DevStub.com


All versions of kubernetes-api-php-client with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
guzzlehttp/guzzle Version 5.0.3
netresearch/jsonmapper Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devstub/kubernetes-api-php-client contains the following files

Loading the files please wait ....