Download the PHP package iaewing/laravel-opensky without Composer

On this page you can find all versions of the php package iaewing/laravel-opensky. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-opensky

Laravel OpenSky Package

Latest Version on Packagist Total Downloads

A Laravel package for easy integration with the OpenSky Network API. This package provides a simple and elegant way to access real-time and historical aviation data.

Note: This package is for research and non-commercial purposes only, as per OpenSky Network's terms of use. For commercial usage, contact OpenSky Network directly.

Features

Requirements

Installation

Install the package via Composer:

The package will automatically register its service provider in Laravel 9+.

Optionally, publish the configuration file to customize cache settings, timeouts, or other options:

Note: Publishing the config is optional. The package works with default settings using only environment variables.

Configuration

Add your OpenSky credentials to your .env file. OpenSky supports two authentication methods:

Option 1: OAuth2 Client Credentials (Recommended)

Option 2: Legacy Basic Authentication (Being Deprecated)

Note: For new accounts created after March 2025, you must use OAuth2. Legacy basic authentication only works for older accounts.

Authentication Methods

The OpenSky Network API supports two authentication methods:

1. OAuth2 Client Credentials Flow (Recommended)

This is the modern, secure authentication method required for all new accounts created after March 2025:

  1. Log in to your OpenSky account at https://opensky-network.org/
  2. Visit the Account page and create a new API client
  3. Retrieve your client_id and client_secret
  4. Add them to your .env file:

2. Legacy Basic Authentication (Being Deprecated)

This method uses your OpenSky username and password directly. It only works for legacy accounts created before March 2025:

Important Notes:

Anonymous Access

Some endpoints work without authentication but have stricter rate limits:

Licensing and Terms of Use

This package respects OpenSky Network's terms of use:

For commercial usage or higher rate limits, contact OpenSky Network directly at https://opensky-network.org/

Usage

Basic Usage with Facade

Dependency Injection

Available Methods

State Vectors

Flights

Tracks

Data Transfer Objects

The package returns strongly typed DTOs for all API responses:

StateVectorResponse

FlightResponse

TrackResponse

Examples

Real-time Flight Tracking

Airport Traffic Analysis

Aircraft Route Tracking

Configuration Options

After publishing the config file (php artisan vendor:publish --tag=opensky-config), you can customize these settings in config/opensky.php:

Rate Limiting

The OpenSky API has different rate limits based on API credits:

Credit usage varies by request:

The package respects these limits and provides caching to reduce API calls.

Error Handling

The package throws OpenSkyException for API errors:

Testing

This package uses Pest for testing:

License

This package is open-sourced software licensed under the MIT license.

Credits

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

OAuth Token Caching

When using OAuth2 authentication, the package automatically caches access tokens to improve performance:

This means you won't need to authenticate on every API call, significantly improving performance for applications making frequent requests.


All versions of laravel-opensky with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^9.0|^10.0|^11.0|^12.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package iaewing/laravel-opensky contains the following files

Loading the files please wait ...