PHPackages                             travelosteam/amara-client - 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. travelosteam/amara-client

ActiveLibrary[API Development](/categories/api)

travelosteam/amara-client
=========================

O interpretare a clientului php pentru interogarea TO Amara

09PHP

Since Aug 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/travelosteam/amara-client)[ Packagist](https://packagist.org/packages/travelosteam/amara-client)[ RSS](/packages/travelosteam-amara-client/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Amara PHP Client
================

[](#amara-php-client)

[![Latest Stable Version](https://camo.githubusercontent.com/617769a680454f76999e982be080cfa9d793b87c3e46f5612d5f626aa77b0686/687474703a2f2f706f7365722e707567782e6f72672f74726176656c6f737465616d2f616d6172612d636c69656e742f76)](https://packagist.org/packages/travelosteam/amara-client)[![Total Downloads](https://camo.githubusercontent.com/38925fecd808c16eee5515f31861244452dcaba6c0064a68dad47e52fcf00939/687474703a2f2f706f7365722e707567782e6f72672f74726176656c6f737465616d2f616d6172612d636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/travelosteam/amara-client)[![Latest Unstable Version](https://camo.githubusercontent.com/692cce838e2d1a47388a388c680359a8a80fabee143abc21bb551f65bad2a85e/687474703a2f2f706f7365722e707567782e6f72672f74726176656c6f737465616d2f616d6172612d636c69656e742f762f756e737461626c65)](https://packagist.org/packages/travelosteam/amara-client)[![License](https://camo.githubusercontent.com/e415061090fbc9e9f3b6e25ad37f0d336f2e1c9e0e9e45d696e49de378aa0a26/687474703a2f2f706f7365722e707567782e6f72672f74726176656c6f737465616d2f616d6172612d636c69656e742f6c6963656e7365)](https://packagist.org/packages/travelosteam/amara-client)

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

[](#requirements)

PHP 7.0 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require travelosteam/amara-client
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

Getting Started
---------------

[](#getting-started)

### Downloading Offers

[](#downloading-offers)

```
use TravelOS\API\Suppliers\Amara\Clients\Offer
use TravelOS\API\Suppliers\Amara\Clients\Soap\UserToken

/*
 * $user, $pass, $code from Amara TO
 * $key from amara docs
 */
$token = new UserToken($user, $pass, $code, $key);

$client = new Offer();
$client->setToken($token);
$archive = $client->DownloadOffer();

$file = pathinfo($archive->FileName, PATHINFO_FILENAME);
file_put_contents($file, $archive->FileContent);
```

### Booking Offer

[](#booking-offer)

```
use TravelOS\API\Suppliers\Amara\Clients\Book
use TravelOS\API\Suppliers\Amara\Clients\Soap\ReservationRequestInfo
use TravelOS\API\Suppliers\Amara\Clients\Soap\UserToken

/*
 * $user, $pass, $code from Amara TO
 * $key from amara docs
 */
$token = new UserToken($user, $pass, $code, $key);

$client = new Book();
$client->setToken($token);

$reservation = new ReservationRequestInfo();
// ... add reservation data

try{
   $client->verify($reservation);
   $info = $client->book($reservation);
   var_dump($info);
} carch (\Exception $e){
    echo $e->getMessage();
}
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3576577?v=4)[Catalin](/maintainers/capir)[@capir](https://github.com/capir)

---

Top Contributors

[![capir](https://avatars.githubusercontent.com/u/3576577?v=4)](https://github.com/capir "capir (4 commits)")

### Embed Badge

![Health badge](/badges/travelosteam-amara-client/health.svg)

```
[![Health](https://phpackages.com/badges/travelosteam-amara-client/health.svg)](https://phpackages.com/packages/travelosteam-amara-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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