crazypanter28 / sabre-laravel-sdk
Laravel SDK for Sabre GDS REST API - Authentication, Passengers, Flights and more
Package info
github.com/crazypanter28/sabre-laravel-sdk
pkg:composer/crazypanter28/sabre-laravel-sdk
0.1.1
2026-06-16 15:38 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.0
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- orchestra/testbench: ^8.23|^9.0|^10.0
- phpunit/phpunit: ^10.0|^11.0
README
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