crazypanter28/sabre-laravel-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

crazypanter28/sabre-laravel-sdk

Composer 安装命令:

composer require crazypanter28/sabre-laravel-sdk

包简介

Laravel SDK for Sabre GDS REST API - Authentication, Passengers, Flights and more

README 文档

README

Latest Version on Packagist Tests License

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

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固