PHPackages                             ocolin/tarana-tcs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ocolin/tarana-tcs

ActiveLibrary[API Development](/categories/api)

ocolin/tarana-tcs
=================

PHP Rest client for Tarana TSC API

v1.0.0(4mo ago)05MITPHPPHP ^8.3

Since Apr 2Pushed 3mo agoCompare

[ Source](https://github.com/ocolin/TaranaTCS)[ Packagist](https://packagist.org/packages/ocolin/tarana-tcs)[ RSS](/packages/ocolin-tarana-tcs/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

Tarana TCS
==========

[](#tarana-tcs)

What is it?
-----------

[](#what-is-it)

This is a lightweight PHP REST client for the Tarana TCS API services.

Requirements
------------

[](#requirements)

- PHP &gt;=8.3
- guzzlehttp/guzzle ^7.10
- ocolin/global-type ^2.0

Installation
------------

[](#installation)

```
composer require ocolin/tarana-tcs

```

Configuration
-------------

[](#configuration)

Configuration can be done either through environment settings or constructor arguments. Only properties are needed for configuration. Your API token and the URL of the TSC server. The TSC hostname is also optional as Tarana's API is sell established. However, should that ever change, the hostname can be configured.

### Configuration Properties

[](#configuration-properties)

EnvironmentArgumenttypeDescriptionTARANA\_TCS\_API\_TOKEN$tokenstringAPI Key assigned by TaranaTARANA\_TCS\_API\_HOST$hoststringTarana TSC hostname--$optionsarray|objectOptional guzzle properties### Environment Variables

[](#environment-variables)

```
// Manual for demonstration
$_ENV['TARANA_TCS_API_TOKEN'] = 'abcdefg';
$_ENV['TARANA_TCS_API_HOST'] = 'https://api.tcs.taranawireless.com';
$taranaTCS = new Ocolin\TaranaTCS\TaranaTCS();
```

### Constructor Arguments

[](#constructor-arguments)

```
$taranaTCS = new Ocolin\TaranaTCS\TaranaTCS(
       host: 'https://api.tcs.taranawireless.com',
      token: 'abcdefg'
);
```

### Options

[](#options)

Optional guzzle parameters can be set using the options argument.

```
$taranaTcs = new Ocolin\TaranaTCS\TaranaTCS( options: [ 'verify' => false ] );
```

### HTTP Defaults

[](#http-defaults)

OptionDefaultDescriptiontimeout20Seconds to give HTTP attemptverifytrueVerify SSL credentialsResponse
--------

[](#response)

The client returns a response object with the payload as well as HTTP data. Tarana TCS returns an object with a property for data, and a property for error on all calls. This client body payload will be either the error content or data content depending on whether the call was successful or not.

ParameterTypeDescriptionstatusintegerHTTP status codestatusMessagestringHTTP status messageheadersarrayHTTP response headersbodyobjectTSC payload. Data or error contentPath interpolation
------------------

[](#path-interpolation)

The TSC client will interpolate any path variable tokens with value in any matching keys or properties in the $query parameter. See the GET method example to see a path token being replaced.

Method functions
----------------

[](#method-functions)

### GET

[](#get)

Get a resource(s)

```
// End point will be /v2/network/radios/abcdefg
$output = $taranaTCS->get(
    endpoint: '/v2/network/radios/{serialNumber}',
       query: [ 'serialNumber' => 'abcdefg' ]
);
```

### POST

[](#post)

Create a resource.

```
$output = $taranaTCS->post(
    endpoint: '/v1/network/regions',
        body: [ 'name' => 'RegionName' ]
);
```

### PATCH

[](#patch)

Update a resource.

```
$output = $taranaTCS->patch(
    endpoint: '/v1/network/regions/{regionName}',
       query: [ 'regionName' => 'RegionName' ],
        body: [ 'notes' => 'My new notes' ]
);
```

### PUT

[](#put)

Complete update of resource.

```
$output = $taranaTCS->put(
    endpoint: '/v1/users/{email}',
       query: [ 'email' => 'email@address.com' ],
        body: [ ... ]
);
```

### DELETE

[](#delete)

Remove resource

```
$output = $taranaTCS->delete(
    endpoint: '/v1/users/{email}',
       query: [ 'email' => 'email@address.com' ]
);
```

### REQUEST

[](#request)

Generic HTTP request function.

```
$output = $taranaTCS->request(
    endpoint: '/v1/network/regions/{regionName}',
      method: 'PATCH',
       query: [ 'regionName' => 'RegionName' ],
        body: [ 'notes' => 'My new notes' ]
);
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance77

Regular maintenance activity

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

139d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e97ac0aa452b872ddc3f7f4c56c83852574a27bb74622f8c054d11ca20008fc9?d=identicon)[Ocolin](/maintainers/Ocolin)

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ocolin-tarana-tcs/health.svg)

```
[![Health](https://phpackages.com/badges/ocolin-tarana-tcs/health.svg)](https://phpackages.com/packages/ocolin-tarana-tcs)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k55](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
