Download the PHP package ijeffro/laravel-aircrafts without Composer
On this page you can find all versions of the php package ijeffro/laravel-aircrafts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ijeffro/laravel-aircrafts
More information about ijeffro/laravel-aircrafts
Files in ijeffro/laravel-aircrafts
Download ijeffro/laravel-aircrafts
More information about ijeffro/laravel-aircrafts
Files in ijeffro/laravel-aircrafts
Vendor ijeffro
Package laravel-aircrafts
Short Description IATA aircraft type codes for Laravel: an in-memory lookup API, validation rule and optional database table.
License MIT
Homepage https://github.com/FLAIRUK/laravel-aircrafts
Package laravel-aircrafts
Short Description IATA aircraft type codes for Laravel: an in-memory lookup API, validation rule and optional database table.
License MIT
Homepage https://github.com/FLAIRUK/laravel-aircrafts
Please rate this library. Is it a good library?
Informations about the package laravel-aircrafts
**Laravel Aircrafts** โ IATA aircraft type designators (`320`, `738`, `388`, โฆ) for Laravel 12 and 13.
- **No database required.** Look aircraft types up through a facade backed by an in-memory dataset.
- **Typed results.** Every lookup returns readonly `Aircraft` objects in Laravel collections keyed by code.
- **Validation rule.** `new AircraftCode` accepts known codes only.
- **Optional table.** Publish a migration and seed an `aircrafts` table.
๐ฆ Installation ยท ๐ Usage ยท ๐พ Database table ยท ๐ Upgrading
## ๐ฆ Installation Requires PHP 8.2 or later with Laravel 12, or PHP 8.3 or later with Laravel 13. Laravel discovers the service provider and the `Aircrafts` facade automatically.
## ๐ Usage ### Select options ### Validation
## ๐พ Database table (optional) You can also call the seeder from your own `DatabaseSeeder`: The bundled `FLAIRUK\Aircrafts\Models\Aircraft` model gives you `Aircraft::code('738')->first()`. The table name and connection come from `AIRCRAFTS_TABLE` and `AIRCRAFTS_DB_CONNECTION`, or from the published config.
## ๐ Upgrading from dev-master Version 1.0 is a rewrite. Breaking changes: | dev-master | 1.0 | | --- | --- | | Package `ijeffro/laravel-aircrafts` | `flairuk/laravel-aircrafts` | | `ijeffro\Aircrafts\โฆ` namespace | `FLAIRUK\Aircrafts\โฆ` | | Facade `ijeffro\Aircrafts\AircraftsFacade` | `FLAIRUK\Aircrafts\Facades\Aircrafts` (auto-discovered) | | `Aircrafts::getList($sort)` (array) | `Aircrafts::all()->sortBy($property, SORT_NATURAL \| SORT_FLAG_CASE)` (Collection of `Aircraft`) | | `Aircrafts::getOne($id)` | `Aircrafts::findById($id)` or `Aircrafts::find($code)` | | `Aircrafts::getListForSelect()` (keyed by id) | `Aircrafts::options('id')` | | `php artisan aircrafts:migration` | `php artisan aircrafts:install` / `aircrafts:seed` | | Config key `aircrafts.table_name` | `aircrafts.table` | | `updated` field (a 2015 import timestamp) | removed | Row `id`s are unchanged.
## ๐งช Testing
## ๐ License MIT. See [LICENSE](LICENSE).
All versions of laravel-aircrafts with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
illuminate/console Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
illuminate/validation Version ^12.0|^13.0
illuminate/console Version ^12.0|^13.0
illuminate/database Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
illuminate/validation Version ^12.0|^13.0
The package ijeffro/laravel-aircrafts contains the following files
Loading the files please wait ...