Download the PHP package ocolin/tarana-tsp without Composer

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

Tarana TSP

What is it?

This is a simple PHP REST client for Tarana's TSP API services.


Table of Contents


Requirements


Installation


Configuration

The client can be configured using environment variables, constructor arguments, or a combination of both.

Parameters

Environment name Constructor Argument Type Description
TARANA_TSP_API_HOST $host string Hostname of Tarana API server
TARANA_TSP_API_TOKEN $token string Authentication token issued by Tarana

Using environment

Constructor Arguments

Options

The client has the ability to pass Guzzle HTTP options for things such as SSL verification, HTTP timeouts, etc.


Response

The client will return an object with the following properties:

Name Type Description
status integer HTTP status code
statusMessage string HTTP status message
headers array HTTP response headers
body string|array API response content
format string json or csv format

NOTE: When returning JSON, it will be in the form of an associative array.


Path Parameter Interpolation

Any elements or properties of a \$query argument that match variable tokens in the URI endpoint path will be replaced with the values for those elements in the $query array or object. Please see some of the method functions for examples.


Core Functions

This client has 3 main functions for handling different types of data the API uses. One for JSON queries, one for form data queries, and one for multi-part queries.

Request

The request method is for endpoints that send JSON data to the API server.

requestForm

THis method is for API calls that require form data instead of JSON.

requestMultipart

Some Tarana API calls require multi-part form submissions instead of JSON.


Endpoint Functions

checkApiKey

Check that API Key is valid

findBnsWithIssues

This endpoint retrieves a list of Base Nodes (BNs) for a given operator that have TCS data.

Arguments

Name Type Required Default Description
format string No csv Specify output of JSON or CSV
operator string No null Specify operator ID

predictReport

This endpoint reports on all predictions (single and multi-sector) made over the past number of days specified (default = 7 days). An aggregated CSV file, containing the CSV portion of all the predictions made, is returned, ordered newest to oldest.

Name Type Required Default Description
operator string No null Optional operator name
days integer No null Optional report timeframe in days (default=7)
options string No null The options for prediction results
download boolean No false Set true for a download URL instead of a direct response

predictMultiSector

This endpoint predicts the path loss and speed for multiple sectors, each consisting of one Base Node (BN) and one or more Remote Nodes (RNs). It takes the MultiSector object containing information about the BNs, RNs, and optional additional BNs as input and returns an output object containing the predicted path loss, speed, and other relevant information for each sector.

Name Type Required Default Description
body array|object Yes See API docs for object structures
bnLimit integer No null The limit on the number of BN predictions for each RN
options string No null Options for prediction results (cdf_graphs, path_profiles, etc.)

submitMultiSector

This endpoint submits a job to predict the path loss and speed for multiple sectors in the background. It returns immediately with the request ID that can be used to query the status of the prediction.

Name Type Required Default Description
body array|object Yes See API docs for object structures
bnLimit integer No null The limit on the number of BN predictions for each RN
options string No null Options for prediction results (cdf_graphs, path_profiles, etc.)

getStatus

This endpoint returns the prediction status, including the progress of prediction for Base Nodes (BNs) and Remote Nodes (RNs), as well as the overall progress for all devices combined.

Name Type Required Default Description
requestId string Yes The unique identifier for the prediction request
csv boolean No false Check CSV job status

getResult

This endpoint returns the prediction results, returning an output object containing the predicted path loss, speed, and other relevant information for each sector.

Name Type Required Default Description
requestId string Yes The unique identifier for the prediction request
csv boolean No false Get CSV result
format string No json body is json or csv
download boolean No false return download URL instead of returning data

predictMultiSectorCsv

This endpoint predicts the path loss and speed for multiple sectors, each consisting of one Base Node (BN) and one or more Remote Nodes (RNs). It takes multiple CSV files containing information about the BNs, RNs, and optional additional BNs as input and returns an output object containing the predicted path loss, speed, and other relevant information for each sector.

Name Type Required Default Description
rnCsvFilePath string Yes The CSV file with information on the RNs (limit 100)
heightCsvFilePath string No null The CSV file with information on the heights of the RNs
bnCsvFilePath string No null The CSV file with information on additional BNs to use
bnLimit integer No null The limit on the number of BN predictions for each RN
format string No json Specify the response format: 'csv' (default) or 'json'
options string No null The options for prediction results (cdf_graphs, path_profiles, etc.)
operator string No null Optional operator name
email string No null Optional email address of the requestor

submitMultiSectorCsv

This endpoint submits a job to predict the path loss and speed for multiple sectors in the background. It returns immediately with the request ID that can be used to query the status of the prediction.

Name Type Required Default Description
rnCsvFilePath string Yes The CSV file with information on the RNs (limit 100)
heightCsvFilePath string No null The CSV file with information on the heights of the RNs
bnCsvFilePath string No null The CSV file with information on additional BNs to use
bnLimit integer No null The limit on the number of BN predictions for each RN
format string No json Specify the response format: 'csv' (default) or 'json'
options string No null The options for prediction results (cdf_graphs, path_profiles, etc.)
operator string No null Optional operator name
email string No null Optional email address of the requestor

Async Workflow

Some prediction jobs can take a long time to complete. The submit/status/result pattern allows you to submit a job and poll for completion rather than waiting for a synchronous response.

  1. Submit a job with submitMultiSector() or submitMultiSectorCsv()
  2. Store the request_id from the response body
  3. Poll getStatus() until prediction_state is completed
  4. Fetch results with getResult()

For CSV submissions use submitMultiSectorCsv() and pass csv: true to both getStatus() and getResult().


All versions of tarana-tsp with dependencies

PHP Build Version
Package Version
Requires 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/tarana-tsp contains the following files

Loading the files please wait ...