sabre-laravel-sdk maintained by crazypanter28
Sabre Laravel SDK
A clean Laravel SDK for the Sabre GDS REST API. No more raw HTTP calls — just elegant Laravel-style integration.
🤖 This package is 100% built with AI assistance as an open source community project.
Requirements
- PHP 8.1+
- Laravel 10.x / 11.x / 12.x
Installation
composer require crazypanter28/sabre-laravel-sdk
Publish the config file:
php artisan vendor:publish --tag=sabre-config
Configuration
Add to your .env file:
SABRE_CLIENT_ID=your_client_id
SABRE_CLIENT_SECRET=your_client_secret
SABRE_PCC=your_pcc
SABRE_ENVIRONMENT=test
Usage
Authentication
use SabreLaravel\Facades\SabreAuth;
// Get token (cached automatically for 6 days)
$token = SabreAuth::getToken();
// Force refresh token
$token = SabreAuth::refreshToken();
Passengers
use SabreLaravel\Facades\SabrePassenger;
$passengers = SabrePassenger::list('ABC123');
Roadmap
- v0.1.0 — Authentication + Passenger List
- v0.2.0 — Flight availability / BargainFinder
- v0.3.0 — Create PNR / Booking
- v0.4.0 — Hotels search
- v1.0.0 — Stable release
Contributing
Contributions are welcome! Please open an issue or submit a PR.
License
MIT