Download the PHP package sharpapi/laravel-airports-database-flight-duration-calculator without Composer
On this page you can find all versions of the php package sharpapi/laravel-airports-database-flight-duration-calculator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sharpapi/laravel-airports-database-flight-duration-calculator
More information about sharpapi/laravel-airports-database-flight-duration-calculator
Files in sharpapi/laravel-airports-database-flight-duration-calculator
Package laravel-airports-database-flight-duration-calculator
Short Description Airports Database & Flight Duration Calculator for Laravel powered by SharpAPI.com
License MIT
Homepage https://github.com/sharpapi/laravel-airports-database-flight-duration-calculator
Informations about the package laravel-airports-database-flight-duration-calculator

Airports Database & Flight Duration Calculator for Laravel
🚀 Access comprehensive airport data and calculate flight durations with this Laravel package.
Check the details at SharpAPI's Airports Database & Flight Duration Calculator page.
Requirements
- PHP >= 8.1
- Laravel >= 10.48.29
Installation
Follow these steps to install and set up the SharpAPI Laravel Airports Database & Flight Duration Calculator package.
-
Install the package via
composer: -
Register at SharpAPI.com to obtain your API key.
-
Set the API key in your
.envfile: - [OPTIONAL] Publish the configuration file:
Key Features
- Airport Search: Search for airports by name, IATA code, ICAO code, or city.
- Airport Details: Get detailed information about airports by IATA or ICAO code.
- Flight Duration Calculation: Calculate flight duration between two airports.
- Country-based Airport Listing: Get a list of airports in a specific country.
Usage
You can inject the AirportsDatabaseFlightDurationCalculatorService class to access the functionality.
Basic Workflow
- Search for Airports: Use
searchAirportsto find airports by name, code, or city. - Get Airport Details: Use
getAirportByIataCodeorgetAirportByIcaoCodeto get detailed information about a specific airport. - Calculate Flight Duration: Use
calculateFlightDurationto calculate the flight duration between two airports. - List Airports by Country: Use
getAirportsByCountryto get a list of airports in a specific country.
Controller Example
Here is an example of how to use AirportsDatabaseFlightDurationCalculatorService within a Laravel controller:
Handling Guzzle Exceptions
All requests are managed by Guzzle, so it's helpful to be familiar with Guzzle Exceptions.
Example:
Optional Configuration
You can customize the configuration by setting the following environment variables in your .env file:
Airport Data Format Example
Support & Feedback
For issues or suggestions, please:
Changelog
Please see CHANGELOG for a detailed list of changes.
Credits
- A2Z WEB LTD
- Dawid Makowski
- Enhance your Laravel AI capabilities!
License
The MIT License (MIT). Please see License File for more information.
Follow Us
Stay updated with news, tutorials, and case studies:
All versions of laravel-airports-database-flight-duration-calculator with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.0
laravel/framework Version ^9.0|^10.0|^11.0|^12.0
sharpapi/php-core Version ^1.0
spatie/url Version ^2.4