PHPackages                             seeru/flight-sdk - 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. seeru/flight-sdk

ActiveLibrary[API Development](/categories/api)

seeru/flight-sdk
================

PHP SDK for Seeru Travel Flight API

02PHP

Since May 30Pushed 6mo agoCompare

[ Source](https://github.com/Seeruai/SeeruFlightSDK)[ Packagist](https://packagist.org/packages/seeru/flight-sdk)[ RSS](/packages/seeru-flight-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Seeru Flight SDK
================

[](#seeru-flight-sdk)

A modern PHP 8.0+ SDK for the Seeru Travel Flight API. This SDK provides a clean, type-safe interface for searching and booking flights through the Seeru Travel platform.

Features
--------

[](#features)

- Modern PHP 8.0+ features
- PSR-4 autoloading
- Strong typing
- Proper error handling
- Immutable response objects
- Support for one-way, round-trip, and multi-city searches
- Flexible search options

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

[](#installation)

```
composer require seeru/flight-sdk
```

Basic Usage
-----------

[](#basic-usage)

```
use Seeru\FlightSDK\SeeruFlightSDK;
use Seeru\FlightSDK\Types\SearchOptions;

// Initialize the SDK
$sdk = new SeeruFlightSDK('your-api-token');

// Search for one-way flights
$response = $sdk->search(
    fromAirport: 'DEL',
    toAirport: 'MOW',
    date: '20250612',
    adt: 1,
    chd: 0,
    inf: 0
);

// Search with options
$options = new SearchOptions(
    airline: 'EK,EY',  // Emirates and Etihad
    source: 'NS,MW', // Search in GDS and NDC sources
    direct: true,      // Only direct flights
    cabin: SearchOptions::CABIN_BUSINESS // Business class
);

// Round-trip search with options
$response = $sdk->searchRoundTrip(
    fromAirport: 'DEL',
    toAirport: 'MOW',
    departDate: '20250612',
    returnDate: '20250622',
    options: $options
);

// Multi-city search
$response = $sdk->searchMultiCity([
    'DEL-MOW-20250612',
    'LED-DEL-20250622',
    'DEL-DXB-20250625'
]);
```

Search Options
--------------

[](#search-options)

The SDK supports the following search options:

OptionDescriptionFormatDefaultairlineFilter by specific airlinesComma-separated IATA codes (e.g., 'EK,EY')nullsourceFilter by source systemsComma-separated 2-char codes (e.g., 'GDS,NDC')nulldirectShow only direct flightsbooleanfalsecabinCabin class preference'e' (Economy), 'p' (Premium Economy), 'b' (Business), 'f' (First)'e'Options can be provided either as a `SearchOptions` object or as an array:

```
// Using SearchOptions object
$options = new SearchOptions(
    airline: 'EK,EY',
    cabin: SearchOptions::CABIN_BUSINESS
);

// Using array
$options = [
    'airline' => 'EK,EY',
    'cabin' => 'b'
];
```

Route Formats
-------------

[](#route-formats)

The SDK supports three search types with flexible input formats:

1. One-way: `DEL-MOW-20250612`
2. Round-trip: `DEL-MOW-20250612:MOW-DEL-20250622`
3. Multi-city: `DEL-MOW-20250612:LED-DEL-20250622:DEL-DXB-20250625`

Each route segment can also be provided as an array:

```
$routes = [
    ['DEL', 'MOW', '20250612'],
    ['MOW', 'DEL', '20250622']
];
```

Error Handling
--------------

[](#error-handling)

The SDK uses custom exceptions for error handling:

```
use Seeru\FlightSDK\Exceptions\SeeruApiException;

try {
    $response = $sdk->search('DEL', 'MOW', '20250612');
} catch (SeeruApiException $e) {
    echo "API Error: " . $e->getMessage();
    echo "Status Code: " . $e->getCode();
}
```

Response Objects
----------------

[](#response-objects)

All API responses are converted to immutable objects with type-safe properties:

- `SearchResponse`
- `SearchResultResponse`
- `BookingFareResponse`
- `BookingSaveResponse`
- `OrderResponse`

License
-------

[](#license)

MIT License

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance46

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

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/caa8fe3bd405eb37b8e29b33b84bb81048577a3cf643519c9e0a8a6f0ba80abd?d=identicon)[seeru](/maintainers/seeru)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/seeru-flight-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/seeru-flight-sdk/health.svg)](https://phpackages.com/packages/seeru-flight-sdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M478](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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