PHPackages                             cristof-g/terrawind-api-wrapper - 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. cristof-g/terrawind-api-wrapper

ActiveLibrary[API Development](/categories/api)

cristof-g/terrawind-api-wrapper
===============================

Library for connect to Terrawind API

v1.2.2(1y ago)0369[1 PRs](https://github.com/cristof-g/terrawind-api-wrapper/pulls)MITPHPPHP ^8.0

Since Apr 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cristof-g/terrawind-api-wrapper)[ Packagist](https://packagist.org/packages/cristof-g/terrawind-api-wrapper)[ RSS](/packages/cristof-g-terrawind-api-wrapper/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (0)

SETW API Wrapper
================

[](#setw-api-wrapper)

Librería par el consumo de datos del Sistema de Emisión de Terrawind.

Esta libería tiene el objetivo de simplicar la consulta de datos de SETW y mejorará el tiempo de implementación.

Instalación
-----------

[](#instalación)

### Requisitos básicos

[](#requisitos-básicos)

- PHP 8.0 o superior

### Pasos para Instalación

[](#pasos-para-instalación)

`git clone https://github.com/cristof-g/setw-api-wrapper.git`

### Métodos Disponibles

[](#métodos-disponibles)

#### Countries

[](#countries)

Obtener todos los paises

```
$country =  new Country($credentials);
$country->get();
```

Obtener país por región

```
$country =  new Country($credentials);
$country->getByRegionId($regionId);
```

#### Currencies

[](#currencies)

Obtener todos las divisas

```
$currency =  new Currency($credentials);
$currency->get();
```

#### Documents Types

[](#documents-types)

Obtener tipo de documentos

```
$documentType =  new DocumentType($credentials);
$docuentType->get();
```

#### Products

[](#products)

Obtener todos los productos disponibles

```
$product =  new Product($credentials);
$product->get();
```

Obtener todos los productos con comisiones

```
$product =  new Product($credentials);
$product->getWithComissions();
```

#### Regions

[](#regions)

Obtener las regiones

```
$region =  new Region($credentials);
$region->get();
```

#### Tariffs

[](#tariffs)

Obtener tarifa por producto

```
$tariff = new Tariff($credentials);
$tariff->getByProductId($productId);
```

#### Upgrades

[](#upgrades)

Obtener los Upgrades (Coberturas adicionales)

```
$upgrade = new Upgrade($credentials);
$upgrade->get($productId, $passengerAge, $tripDays);
```

#### Voucher

[](#voucher)

Agregar voucher

```
$voucher = new Voucher($credentials);
$voucher->add($voucherData);
```

Editar voucher

```
$voucher = new Voucher($credentials);
$voucher->edit($voucherData);
```

Obtener todos los vouchers

```
$voucher = new Voucher($credentials);
$voucher->get();
```

Obtener Link del voucher

```
$voucher = new Voucher($credentials);
$voucher->link($voucherNumber, $voucherKey);
```

Obtener precio del voucher

```
$voucher = new Voucher($credentials);
$voucher->price($voucherData);
```

Obtener el estatus del voucher

```
$voucher = new Voucher($credentials);
$voucher->status($voucherNumber);
```

Requerir anulación del voucher

```
$voucher = new Voucher($credentials);
$voucher->requireAnnulation($voucherNumber, $comments);
```

Validar voucher

```
$voucher = new Voucher($credentials);
$voucher->check($voucherData);
```

Obener información por número de voucher

```
$voucher = new Voucher($credentials);
$voucher->getByVoucherNumber($voucherNumber);
```

Obtener número de vouchers emitidos por el sitema (Activos y cancelados)

```
$voucher = new Voucher($credentials);
$voucher->countVouchers($filter);
```

Note

Para saber que información y tipo de datos se debe enviar favor de revisar la documentación de SETW

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance48

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

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

Every ~203 days

Recently: every ~197 days

Total

10

Last Release

386d ago

PHP version history (2 changes)1.0PHP ^7.0

v1.1.5PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec8d6f40dea4eb885e15b3133b667a44cd27dec462961d808d5bc7acecc37169?d=identicon)[cristof-g](/maintainers/cristof-g)

---

Top Contributors

[![cristof-g](https://avatars.githubusercontent.com/u/63265870?v=4)](https://github.com/cristof-g "cristof-g (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/cristof-g-terrawind-api-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/cristof-g-terrawind-api-wrapper/health.svg)](https://phpackages.com/packages/cristof-g-terrawind-api-wrapper)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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