Download the PHP package ocolin/tachyon-lite without Composer

On this page you can find all versions of the php package ocolin/tachyon-lite. 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 tachyon-lite

TachyonLite

A PHP HTTP client for Tachyon Networks devices running 8devices firmware. Provides access to MAC table and device status data on models that lack a dedicated API, such as the TNS-100.

Tachyon Networks offers a dedicated API on their higher-end devices. TachyonLite is designed for models where that API is unavailable, providing equivalent read access to MAC table and status data through the device's web interface.

Compatible Devices

This client communicates with the web interface of devices running 8devices firmware. It has been tested against the Tachyon Networks TNS-100. Other devices running 8devices firmware may also be compatible.

Requirements

Installation

Configuration

Configuration can be provided directly or via environment variables. Direct arguments take priority over environment variables.

Via Constructor

Via Environment Variables

When environment variables are set, no arguments are needed:

Config Options

Parameter Type Default ENV Variable Description
host string TACHYON_LITE_HOST IP address or hostname
username string TACHYON_LITE_USERNAME Login username
password string TACHYON_LITE_PASSWORD Login password
ssl bool true TACHYON_LITE_SSL Use HTTPS
httpPort int 80 TACHYON_LITE_HTTP_PORT HTTP port
httpsPort int 443 TACHYON_LITE_HTTPS_PORT HTTPS port
options array [] Additional Guzzle options

Usage

MAC Table

Returns an array of MacEntry objects representing the device's MAC forwarding table.

MacEntry Properties

Property Type Description
mac string MAC address
interface string Network interface (e.g. eth1, eth5)
vlan int VLAN ID, 0 if not present
bridge string Bridge name, empty if not present
offload bool Whether hardware offload is active

Device Status

Returns a Status object containing device information. All properties are raw decoded JSON objects.

By default all available types are returned. You can request specific types:

Available Status Types

Type Description
system Model, serial number, firmware, CPU, memory
network Hostname, DNS, DHCP, zone/IP information
interfaces Per-interface details including port descriptions
ethernet Ethernet port statistics (hardware dependent)

Exceptions

Exception Description
ConfigException Required configuration missing
AuthException Authentication failed
TachyonLiteException Unexpected response from device
GuzzleException HTTP transport error

License

MIT


All versions of tachyon-lite with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
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/tachyon-lite contains the following files

Loading the files please wait ...