PHPackages                             santosdave/travelport - 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. santosdave/travelport

ActiveLibrary[API Development](/categories/api)

santosdave/travelport
=====================

PHP client library for Travelport SOAP API

081PHP

Since Jul 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/santosdave/travelport)[ Packagist](https://packagist.org/packages/santosdave/travelport)[ RSS](/packages/santosdave-travelport/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHP client library for Travelport SOAP API
==========================================

[](#php-client-library-for-travelport-soap-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8d99c659d952aaa551cd17de0e8a2403665745a4e2d6d14f6082c9b7c232d57e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616e746f73646176652f74726176656c706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/santosdave/travelport)

With this library you can call the Travelport SOAP methods in a object oriented way.

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

[](#installation)

You can install the package via composer:

```
composer require santosdave/travelport
```

Usage
-----

[](#usage)

If you don't have the required credentials you can register for a trial on this page:

Here is a pure PHP example:

```
use Santosdave\Travelport;
use Santosdave\Travelport\System;

// Create the API client
$travelport = new Travelport\Travelport(
    'Universal API/uAPI123456789', // Travelport User ID
    'ABCDEFGHILMNOQRSTUVZ', // Travelport Password
    'P1234567', // Travelport Target Branch
    Travelport\Endpoints::REGION_EMEA, // Region
    false // Set to false to use pre-production endpoints
);

// Create a Time request on the System service
$request = (new System\TimeReq())
    ->setBillingPointOfSaleInfo(new System\BillingPointOfSaleInfo('UAPI')); // Don't know what this is, but it's required to complete a call :(

// Execute the request
$response = $travelport->execute($request);
printf('The current system time is %s', $response->getSystemTime());

// Create a Ping request on the System service
$request = (new System\PingReq())
    ->setPayload('Hello World!')
    ->setBillingPointOfSaleInfo(new System\BillingPointOfSaleInfo('UAPI')); // Don't know what this is, but it's required to complete a call :(

// Execute the request
$response = $travelport->execute($request);
printf('Travelport pinged back: %s', $response->getPayload());
```

This library supports almost all the requests and responses available. They can be executed in the same way:

- Create the response object
- Execute the request
- Use the methods in the answer to get the information you need

You can browser the library source code to understand which methods are available. Usually the request object names end with "Req" and the corrisponding responses end with "Rsp" (ie. System\\TimeReq and System\\TimeRsp).

### Laravel support

[](#laravel-support)

You can also use this library in your Laravel applications.

The first step whould be to publish the configuration file:

```
php artisan vendor:publish --tag=config --provider="Santosdave\Travelport\TravelportServiceProvider"

```

Then insert your credentials in the config\\travelport.php file.

Then you can execute requests with a code like this:

```
use Santosdave\Travelport;
use Santosdave\Travelport\System;

// Create a Time request on the System service
$request = (new System\TimeReq())
    ->setBillingPointOfSaleInfo(new System\BillingPointOfSaleInfo('UAPI')); // Don't know what this is, but it's required to complete a call :(

// Execute the request
$response = Travelport::execute($request);
printf('The current system time is %s', $response->getSystemTime());

// Create a Ping request on the System service
$request = (new System\PingReq())
    ->setPayload('Hello World!')
    ->setBillingPointOfSaleInfo(new System\BillingPointOfSaleInfo('UAPI')); // Don't know what this is, but it's required to complete a call :(

// Execute the request
$response = Travelport::execute($request);
printf('Travelport pinged back: %s', $response->getPayload());
```

### Schema version

[](#schema-version)

The current version of this library supports the 19.2 schema version. I hope to keep it updated at least once a year.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Filippo Toso](https://github.com/santosdave)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

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://www.gravatar.com/avatar/c58a87513095fe0454c5dd566a2a18cf274ec91c3d4de92fb0854f863d84da9e?d=identicon)[santodave86](/maintainers/santodave86)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/santosdave-travelport/health.svg)

```
[![Health](https://phpackages.com/badges/santosdave-travelport/health.svg)](https://phpackages.com/packages/santosdave-travelport)
```

###  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)
