Download the PHP package flairuk/laravel-aviationstack without Composer

On this page you can find all versions of the php package flairuk/laravel-aviationstack. 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-aviationstack

PHP 8.2+  Laravel 12 or 13  Lint  Tests  Downloads on Packagist  MIT licence  aviationstack API 
 

**Aviationstack for Laravel** — A fluent client for the [aviationstack API](https://docs.apilayer.com/aviationstack/docs/api-documentation): real-time and historical flights, airport timetables, future schedules, routes, and the reference data (airports, airlines, airplanes, aircraft types, taxes, cities, countries). ## Install The service provider and the `Aviationstack` facade are discovered automatically. | Key | Default | | | --- | --- | --- | | `AVIATIONSTACK_KEY` | — | Required. Sent as `access_key`. | | `AVIATIONSTACK_HTTPS` | `true` | Free plans must set `false`. | | `AVIATIONSTACK_MAX_LIMIT` | `100` | `limit()` is clamped to this. | | `AVIATIONSTACK_TIMEOUT` / `_CONNECT_TIMEOUT` | `20` / `5` | Seconds. | | `AVIATIONSTACK_RETRIES` / `_RETRY_DELAY` | `1` / `500` | Retries on connection failures and 5xx only. | ## Endpoints | Method | API path | Named filters | | --- | --- | --- | | `flights()` | `/v1/flights` | `status()`, `on($date)`, `from()`, `to()`, `airline()`, `airlineName()`, `flight()`, `departureDelay($min, $max)`, `arrivalDelay($min, $max)`, `scheduledToDepartOn()`, `scheduledToArriveOn()` | | `timetable($iata, $type)` | `/v1/timetable` | `departures()`, `arrivals()`, `status()`, `airline()`, `airlineName()`, `flight()` | | `futureFlights($iata, $date, $type)` | `/v1/flightsFuture` | `departures()`, `arrivals()`, `on()`, `airline()`, `flight()` | | `routes()` | `/v1/routes` | `from()`, `to()`, `airline()`, `flight()` | | `airports()`, `airlines()`, `airplanes()`, `aircraftTypes()`, `taxes()`, `cities()`, `countries()` | `/v1/…` | `search()` (Basic plan and up) | | `endpoint($path)` | anything else | — | The code-based filters pick the parameter from the code's shape: - `from('LHR')` sends `dep_iata`; `from('EGLL')` sends `dep_icao`. `to()` works the same way. - `airline('BA')` sends `airline_iata`; `airline('BAW')` sends `airline_icao`. - `flight('BA117')` sends `flight_iata`; `flight('BAW117')` sends `flight_icao`; `flight(117)` sends `flight_number`. Codes are upper-cased before they are sent. Use `where('param', $value)` or `wheres([...])` to pass any parameter under the API's own name. Dates can be strings or `DateTimeInterface`. Every call on the facade returns a **new** builder, so filters never carry over from one query to the next. ## Results and paging `get()` returns a `FLAIRUK\Aviationstack\Page`: Rows are left as the API's own arrays. Their field names differ between endpoints: `flights` uses snake case and `timetable` uses camel case. `lazy()` returns a `LazyCollection` that fetches page after page as you walk it. **Each page is a billed request**, so set a limit on large result sets: ## Errors Failures throw. They are not turned into empty results, because on a paid API "your quota is spent" must not look the same as "there are no flights". | Exception | apilayer `type`s | | --- | --- | | `InvalidAccessKeyException` | `missing_access_key`, `invalid_access_key`, `inactive_user`, `account_on_hold` | | `AccessRestrictedException` | `https_access_restricted`, `function_access_restricted`, `api_access_blocked` | | `UsageLimitException` | `usage_limit_reached`, `daily_usage_limit_reached`, `fair_use_limit_reached`, `rate_limit_reached` | | `ConnectionException` | The API could not be reached. | | `AviationstackException` | The base class, and the type for everything else (`invalid_api_function`, `internal_error`, `maintenance_mode`, …). | `getCode()` returns the apilayer error code (101, 104, 106…), `$e->type` the error type, and `$e->status` the HTTP status. An error body is treated as an error even when it arrives with a 200 status. A missing key throws before any request is sent. So does a missing required parameter on `timetable` or `futureFlights` (an `InvalidArgumentException`). ## Rate limits to know about - `timetable` and `flightsFuture` allow one request every 10 seconds on paid plans, and one every 60 seconds on the free plan. - Historical `flights` go back 12 months. - The page size is at most 100 below the Professional plan, and 1000 on it and above. ## Testing The tests use `Http::fake()` and never call the real API. ## License MIT. See [LICENSE.md](LICENSE.md).

All versions of laravel-aviationstack with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.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 flairuk/laravel-aviationstack contains the following files

Loading the files please wait ...