PHPackages                             dazza-dev/laravel-geography - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dazza-dev/laravel-geography

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dazza-dev/laravel-geography
===========================

Provide countries, states, and cities.

v1.0.0(1y ago)07MITPHPPHP &gt;=7.4

Since Oct 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dazza-dev/Laravel-Geography)[ Packagist](https://packagist.org/packages/dazza-dev/laravel-geography)[ RSS](/packages/dazza-dev-laravel-geography/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel Geography
=================

[](#laravel-geography)

The Laravel Languages package provides a ready-to-use list of languages for your Laravel application. This package simplifies the task of managing languages across your app, allowing you to easily retrieve language codes (alpha-2, alpha-3) and names for a variety of purposes like localization, language selection in forms, or general language-related data management.

Setup
-----

[](#setup)

- Install

```
composer require dazza-dev/laravel-geography
```

- Publish migrations and seeders

```
php artisan vendor:publish --tag="laravel-geography"
```

- Run migrations and seeders

```
php artisan migrate
php artisan db:seed --class=GeographySeeder
```

Usage
-----

[](#usage)

- Get all Languages

```
use DazzaDev\Languages\Facades\Languages;

Languages::all();
```

- Get only active languages

```
use DazzaDev\Languages\Facades\Languages;

Languages::active();
```

- Get language by code

```
use DazzaDev\Languages\Facades\Languages;

Languages::getByCode('en'); // Returns English
Languages::getByCode('eng'); // Also returns English
```

- Activate language by code or name

```
use DazzaDev\Languages\Facades\Languages;

Languages::activate('en');
Languages::activate('eng');
```

- Deactivate language by code or name

```
use DazzaDev\Languages\Facades\Languages;

Languages::deactivate('en');
Languages::deactivate('eng');
```

Contributions
-------------

[](#contributions)

Contributions are welcome. If you find any bugs or have ideas for improvements, please open an issue or send a pull request. Make sure to follow the contribution guidelines.

Author
------

[](#author)

Laravel Languages was created by [DAZZA](https://github.com/dazza-dev).

License
-------

[](#license)

This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

576d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a4e49637e94903e3732c3cf0c3e23b2e7a85286ab196f1ff078b0cea058f8b6?d=identicon)[dazza-dev](/maintainers/dazza-dev)

---

Top Contributors

[![dazza-dev](https://avatars.githubusercontent.com/u/21293561?v=4)](https://github.com/dazza-dev "dazza-dev (5 commits)")

---

Tags

countriescitiesregionscontinents

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/dazza-dev-laravel-geography/health.svg)

```
[![Health](https://phpackages.com/badges/dazza-dev-laravel-geography/health.svg)](https://phpackages.com/packages/dazza-dev-laravel-geography)
```

###  Alternatives

[pragmarx/countries

PHP Countries and Currencies

1.9k3.3M18](/packages/pragmarx-countries)[pragmarx/countries-laravel

Countries for Laravel

1471.1M2](/packages/pragmarx-countries-laravel)[gerardojbaez/geodata

Laravel 5.2 package that provides basic geographical data like Countries, Regions and Cities.

3211.9k](/packages/gerardojbaez-geodata)[dipeshsukhia/laravel-country-state-city-data

Country State City Data Provider

8230.8k](/packages/dipeshsukhia-laravel-country-state-city-data)[juanparati/iso-codes

A PHP library that provides ISO codes, currencies, languages, timezones and additional geopolitical information

17146.4k](/packages/juanparati-iso-codes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
