Download the PHP package santosdave/sabre-wrapper without Composer
On this page you can find all versions of the php package santosdave/sabre-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download santosdave/sabre-wrapper
More information about santosdave/sabre-wrapper
Files in santosdave/sabre-wrapper
Package sabre-wrapper
Short Description Laravel wrapper for Sabre APIs
License MIT
Informations about the package sabre-wrapper
Sabre API Wrapper for Laravel
A robust Laravel wrapper for Sabre APIs supporting both REST and SOAP endpoints with comprehensive authentication handling.
A comprehensive Laravel wrapper for Sabre NDC APIs supporting both basic and advanced NDC flows.
Features
- Support for both REST and SOAP APIs
- Automatic token management with refresh and rotation
- Session pool for SOAP APIs with automatic cleanup
- Configurable rate limiting and retry strategies
- Comprehensive error handling
- Support for all major Sabre API services
- Health monitoring and metrics
- Distributed locking mechanism
- Caching strategies with configurable TTLs
- Full NDC (New Distribution Capability) support
Requirements
- PHP 8.1 or higher
- Laravel 8.0 or higher
- PHP SOAP extension installed and enabled
- Valid Sabre API credentials with appropriate access levels
- Composer for package management
- SSL support enabled
Installation
The service provider will automatically register itself in Laravel 8+. For earlier versions, add the provider manually:
Configuration
-
Publish the config file:
-
Add the following environment variables to your
.env
file: - Configuration File Details (config/sabre.php):
Basic Usage
Air Shopping
Order Management
Service Types
The wrapper supports both REST and SOAP services. You can specify the type when creating a service:
Advanced Features
Health Monitoring
Rate Limiting
Caching
Basic NDC Flow
The basic NDC flow consists of the following steps:
- Shopping (BargainFinderMax)
- Price Verification
- Create Booking
- Get/View Booking
- Cancel Booking (if needed)
Example Implementation:
Advanced NDC Flow
The advanced NDC flow provides more control and features:
- Shopping (BargainFinderMax)
- Price Verification
- Order Creation
- Order Management (View/Change)
- Fulfillment
- Exchange (if needed)
Example Implementation:
Key Differences Between Basic and Advanced NDC Flows
-
Booking vs Orders
- Basic Flow: Uses CreateBooking for simple reservation
- Advanced Flow: Uses OrderCreate with more features
-
Payment Processing
- Basic Flow: Payment handled outside the API
- Advanced Flow: Integrated payment processing
-
Ancillary Services
- Basic Flow: Limited ancillary support
- Advanced Flow: Full ancillary service support
- Changes and Modifications
- Basic Flow: Simple cancellation
- Advanced Flow: Complex changes, exchanges
Service Components
- Shopping Service
- Pricing Service
- Booking Service
- Order Management Service
- Ancillary Service
- Seat Service
- Exchange Service
- Fulfillment Service
Error Handling
Flow Diagram
Logging
All API calls are automatically logged if logging is enabled. Logs include:
- Request details
- Response status
- Error information
- Authentication events
- Token refresh events
Testing
Run the test suite:
License
This package is open-sourced software licensed under the MIT license.
Support
For issues and feature requests, please use the GitHub issue tracker.
Contributing
Please see CONTRIBUTING.md for details.
Security
If you discover any security related issues, please email your security contact instead of using the issue tracker.
All versions of sabre-wrapper with dependencies
ext-soap Version *
guzzlehttp/guzzle Version ^7.0
illuminate/support Version ^8.0|^9.0|^10.0
monolog/monolog Version ^3.8
laravel/framework Version ^10.0