Download the PHP package scn/evalanche-reporting-api-connector without Composer

On this page you can find all versions of the php package scn/evalanche-reporting-api-connector. 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 evalanche-reporting-api-connector

EVALANCHE REPORTING API CONNECTOR

Monthly Downloads Build Status

Install

Via Composer

Usage

General

First create a connection with the access credentials provided by SC-Networks.

The EvalancheConnection class provides one method for each table. E.g. the method queries the table 'pools'.

These methods each return a specific client class, e.g. , to specify further options and to receive the data in different formats.

A minimal working example could be:

The available methods follow the "Fluent Interface" pattern, which means they enable method chaining.

The call of a format method like or is always the last call in the chain, as it returns the data.

Methods

The following methods are available:

Formats

At the current state you can choose between the following formats:

JsonArray

Example:

Returns an array of stdClass objects.

JsonObject

Example:

Returns a stdClass object.

XML

Example:

Returns a string, containing valid xml.

CSV

Example:

Returns a string with comma separated values. The first line contains the column titles.

Parameters

Some tables provide further options or mandatory parameters:

Customer id (int)

Use it to get the results for a specific customer, instead of the current customer.

Example:
Provided by:
Pool id (int)

Id of the pool you want to get results for.

Example:
Provided by:

Time restrictions

Limit the result to a defined time span by using the method . Both parameters are optional and can be replaced by .

Examples:

Everything since yesterday:

From date to yesterday:

Everything until yesterday:

Possible values:
Provided by:

Language

Default language is English, but you can pass a different language code when establishing the connection.

Use the provided Enums in the class \Scn\EvalancheReportingApiConnector\Enum\Language

Example
Possible values

Time format

Default time format is iso8601, but you can pass a different format code when establishing the connection.

Use the provided Enums in the class \Scn\EvalancheReportingApiConnector\Enum\TimeFormat

Example
Possible values

License

The MIT License (MIT). Please see License File for more information.


All versions of evalanche-reporting-api-connector with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0||^8.1
ext-json Version *
psr/http-client Version ^1.0
php-http/discovery Version ^1.13
psr/http-message Version ^1.0
psr/http-factory Version ^1.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 scn/evalanche-reporting-api-connector contains the following files

Loading the files please wait ....