Download the PHP package virtuallast/surfsight-php-client without Composer

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

Surfsight PHP Client

A strongly typed, framework-independent PHP 8.3+ client for the official Surfsight API.

Jane generates endpoint and model code from the committed OpenAPI specification. A small maintained API provides regional configuration, authentication, stable resource groups, pagination, media downloads, PSR dependency discovery, and package exceptions.

Features

Installation

Quick start

Region::Europe uses https://api.de.surfsight.net/v2; Region::NorthAmerica uses https://api-prod.surfsight.net/v2. A region is always required.

Authentication

The client calls the documented POST /authenticate operation on first use, reuses the returned token for its documented 24-hour user-token lifetime, and adds Authorization: Bearer … to API calls. An HTTP 401 invalidates the token and permits exactly one re-authentication and retry.

Authentication failures throw AuthenticationException. Passwords and tokens are redacted from debug output and are never included in package exception messages.

Dependency injection

When omitted, php-http/discovery locates the implementations.

Events and pagination

The iterator follows the API's limit/offset metadata lazily and rejects repeated offsets.

Event media

Media links are temporary. Downloads require a valid HTTPS URL and return a PSR-7 stream. The Surfsight bearer token is never attached to the returned external URL.

Recording ranges

API coverage

Maintained high-level APIs currently cover authentication, device retrieval/update, device events/details, event file links/downloads, and recording ranges.

Every other generated operation remains deliberately available through $client->generated(), including alarms, audit logs, calibration, device operations, drivers, geofences, groups, health, OAuth, organizations, partners, streaming, telemetry, users, virtual events, webhooks, and organization albums. This low-level surface follows upstream naming and is less stable.

Errors

No general-purpose retry policy is applied. Configure retries in the injected transport if desired.

Specification and generation

The original official specification is committed at openapi/surfsight.yaml (JSON syntax, which is valid YAML). Generated files live only in generated/ and must never be edited.

The update command downloads the official portal's page-data representation, validates its identity, and atomically replaces the file. Generation applies one documented temporary preprocessing fix; the committed upstream file is unchanged.

Current limitations

Only the priority resource groups have polished wrappers in this initial release. Other API groups use generated() until maintained wrappers are added. No live integration tests run by default, and no claim is made here that requests have been verified with real Surfsight credentials.

License

MIT


All versions of surfsight-php-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
ext-json Version *
jane-php/open-api-runtime Version ^7.0
php-http/client-common Version ^2.7
php-http/discovery Version ^1.20
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^2.0
symfony/serializer Version ^7.4 || ^8.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 virtuallast/surfsight-php-client contains the following files

Loading the files please wait ...