Download the PHP package ocolin/calix-axos-client without Composer

On this page you can find all versions of the php package ocolin/calix-axos-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 calix-axos-client

Calix Axos

What is it?

A lightweight HTTP REST client for Calix AXOS Northbound interface.

No worrying about HTTP and authentication. Just provide an endpoint path and the payload data.


Table of Contents


Installation


Requirements


Instantiation

The client can be configured either via constructor arguments or environment parameters.

Argument Name Environment Name Type Description
$host SMX_AXOS_HOST string Hostname/IP, port, and URI path
$usernmae SMX_AXOS_USERNAME string Username of account to use
$password SMX_AXOS_PASSWORD string Password of account to use

Using Environment variables

Using Constructor arguments

The constructor takes a DTO called Config.

Options

The Config object can also take an options parameter for setting guzzle options such as HTTP timeout, verifying SSL, etc.

Default Options:


Response

The client will response with a data object containing the following properties:

Name Type Description
status integer HTTP response status code
statusMessage string HTTP response status message
headers array HTTP response headers
body array|object API response payload

Request Methods

The Calix API allows four HTTP methods, each is a function on the client:

Method Function Description
GET get() Retrieve existing resource(s)
POST post() Create a new resource
PUT put() Modify an existing resource
DELETE delete() Delete an existing resource

Parameters

Name Type Description
endpoint string The URI of an API endpoint
method string The HTTP method (only used in request())
query array|object Both path and URI query parameters
body array|object Payload from API server

Path Replacement

Any parameters in the query argument with names that match a variable token in the endpoint path name will swap those token names with their value. This allows you to past the endpoint URI as is from the docs and replace them automatically. See the GET method example below.

GET Method

POST Method

PUT Method

DELETE Method

Request Method

There is a request method which lets you manually specify the HTTP method to use rather than a specific method function.


All versions of calix-axos-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
guzzlehttp/guzzle Version ^7.10
ocolin/global-type Version ^2.0
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 ocolin/calix-axos-client contains the following files

Loading the files please wait ...