Download the PHP package flairuk/laravel-world without Composer

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

PHP 8.2+  Laravel 12 or 13  Lint  Tests  Downloads on Packagist  MIT licence  IATA + ISO 3166 
 

**Laravel World** โ€” Countries, cities, airports, airlines and aircraft for Laravel 12 and 13, joined up behind one facade. - **Every dataset.** Installs all five FLAIRUK data packages, each still usable on its own. - **Joined through the country.** Find a country by any of its codes, then its cities, airports and airlines. - **One search.** Search every dataset by code or name in one call. - **No database required.** Everything is looked up in memory. A command publishes and seeds all five tables when you need them.

๐Ÿ“ฆ Installation ยท ๐Ÿงญ Datasets ยท ๐Ÿš€ Usage ยท ๐Ÿ’พ Database tables



## ๐Ÿ“ฆ Installation Requires PHP 8.2 or later with Laravel 12, or PHP 8.3 or later with Laravel 13. Laravel discovers the service providers and the `World` facade automatically.

## ๐Ÿงญ Datasets Each dataset is its own package, and `laravel-world` requires all five: | Package | Data | Facade | | --- | --- | --- | | [flairuk/laravel-countries](https://github.com/FLAIRUK/laravel-countries) | ISO 3166 countries | `Countries` | | [flairuk/laravel-cities](https://github.com/FLAIRUK/laravel-cities) | IATA city codes | `Cities` | | [flairuk/laravel-airports](https://github.com/FLAIRUK/laravel-airports) | IATA airport codes | `Airports` | | [flairuk/laravel-airlines](https://github.com/FLAIRUK/laravel-airlines) | IATA airline designators | `Airlines` | | [flairuk/laravel-aircrafts](https://github.com/FLAIRUK/laravel-aircrafts) | IATA aircraft type codes | `Aircrafts` | Their facades, validation rules and models all work as their READMEs describe. `World` adds what none of them can do alone: links between the datasets.

## ๐Ÿš€ Usage You can also type-hint `FLAIRUK\World\World` to have it injected. ### Countries and what is in them A country can be given by its alpha-2 (`GB`), alpha-3 (`GBR`) or numeric (`826`) code, or as a `Country` object. An unknown country gives an empty collection. `profile()` returns all of it at once, as a `CountryProfile` you can return straight from a controller: ### The country of a place `countryOf()` returns null for the few airlines with no country. ### What a code could mean Codes overlap between the datasets. `code()` returns every match for exactly that code, keyed by kind, and leaves out the kinds with no match: The keys are `country`, `city`, `airport`, `airlines` and `aircraft`. `airlines` is a collection, because IATA re-issues designators. ### Searching everything `search()` matches each dataset's codes and names, and returns up to ten results per kind (`countries`, `cities`, `airports`, `airlines`, `aircraft`), leaving out the kinds with none. ### Each dataset The underlying lookups are available from `World` too, so one import is enough: These are the same singletons the `Countries`, `Cities`, `Airports`, `Airlines` and `Aircrafts` facades use.

## ๐Ÿ’พ Database tables (optional) To publish all five configs and migrations and then, if you agree, migrate and seed every table: It skips any migration that an earlier install already published, including one from a dataset's own `*:install` command, so it is safe to run again. To update the tables after upgrading the packages: `world:seed` runs each dataset's own seed command: `countries:seed`, `cities:seed`, `airports:seed`, `airlines:seed` and `aircrafts:seed`. Each table's name and connection are set in that dataset's config file.

## ๐Ÿงช Testing

## ๐Ÿ“„ License The MIT License (MIT). See [LICENSE](LICENSE) for details.

All versions of laravel-world with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
flairuk/laravel-aircrafts Version ^1.0
flairuk/laravel-airlines Version ^1.0
flairuk/laravel-airports Version ^1.0
flairuk/laravel-cities Version ^1.0
flairuk/laravel-countries Version ^1.0
illuminate/console 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-world contains the following files

Loading the files please wait ...