Увійти Реєстрація
Блог Серії
Кар'єра
Вакансії Компанії
Навчання
Документація Співбесіди Тестування Відео
Екосистема
Пакети Ресурси Проєкти Інструменти Події
Інше
Про нас Реклама

World

nnjeim/world
2.0.1 992 687.6k 10 жовтня 2026
На GitHub

Laravel пакет для роботи з країнами, штатами, містами, валютами, мовами та геолокацією за IP-адресою.

4

Поділитись

README

World for Laravel — geographic data, ready for your UI

World for Laravel

Add countries, states, cities, timezones, currencies, languages, and IP geolocation to a Laravel application. Query the data through the World facade or API routes, then use the live selector examples to build your UI.

Get started with World 2.0

composer require nnjeim/world:^2.0

Prepare your configured cache store before installing the data. If your application uses Laravel's database cache, run php artisan migrate first to create its cache and lock tables. World installation runs only World migrations.

php -d memory_limit=1G artisan world:install

Query a country with the World facade:

use Nnjeim\World\World;

$result = World::countries([
    'filters' => ['iso2' => 'RO'],
]);

if ($result->success) {
    $countries = $result->data;
}

See it in a UI

Try the country selector or the dependent country, state, and city selector. Both have live previews and copy-ready Blade, React, Angular, and Vue examples. The examples use World's Laravel API routes; they do not require another frontend package.

Upgrading from 1.x?

World 2.0 changes data maintenance: refresh and seeding preserve tables and existing IDs, with source tracking and dry runs. Read the upgrade guide before changing your Composer constraint. It covers backups, local edits, the first import's limitations, and the required memory and cache setup. You can also keep using the 1.x documentation.

Choose your documentation

Version Status Documentation
2.0.1 Current stable release; changes to data maintenance from 1.x World 2.0 guide · Upgrade from 1.x
1.1.39 Previous stable release; PHP 8.1+, Laravel 10–13 World 1.x guide
1.1.38 Published legacy release; PHP >=7.4 requirement, GeoIP2 v2 Original 1.1.38 guide

Published versions with retained Git tags keep their original code. Removing an old GitHub release page does not remove its Git tag. Use the documentation at your installed tag for its exact behavior; retain published tags to keep those versions available.

Stay on World 1.x

composer require nnjeim/world:^1.1.39

For an exact 1.1.38 installation:

composer require nnjeim/world:1.1.38

^1.1 and ^1.1.39 stay below 2.0. Existing lock files retain their selected versions when running composer install. Constraints such as *, >=1.1 and dev-master can select a different major version; review your constraint before updating. See Composer version constraints.

Links

Коментарі

Увійдіть, щоб залишити коментар

Будьте першим, хто залишить коментар!

Схожі пакети

Laravel Ide Helper

barryvdh/laravel-ide-helper

Laravel IDE Helper генерує коректні PHPDocs для всіх Facade класів, щоб покращити автодозаповнення у IDE.

14,974 v3.7.0 13 20

Laravel Dompdf

barryvdh/laravel-dompdf

Обгортка DOMPDF для Laravel, яка дозволяє легко генерувати PDF-документи з HTML-вмісту в ваших Laravel-додатках.

7,285 v3.1.2 13 7

Ziggy

tighten/ziggy

Використовуй назви маршрутів Laravel у JavaScript.

4,320 v2.6.5 9 8

Horizon

laravel/horizon

Панель управління та програмна конфігурація для черг Laravel.

4,177 v5.50.1 13 7

Seotools

artesaos/seotools

Інструменти оптимізації для пошукових систем (SEO) для Laravel та Lumen, що допомагають генерувати метатеги, карти сайту та інші елементи для поліпшення видимості сайту в пошукових системах.

3,367 v1.4.1 13 11

Laravel Analytics

spatie/laravel-analytics

Laravel пакет для отримання даних з Google Analytics.

3,245 5.8.0 13 6