PHPackages                             omisai/php-continents - 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. omisai/php-continents

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

omisai/php-continents
=====================

PHP package to provide continents

v1.2.0(3mo ago)16MITPHPPHP ^8.1CI passing

Since Mar 27Pushed 3mo agoCompare

[ Source](https://github.com/omisai-tech/php-continents)[ Packagist](https://packagist.org/packages/omisai/php-continents)[ Docs](https://github.com/omisai-tech/php-continents)[ RSS](/packages/omisai-php-continents/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

[![License](https://camo.githubusercontent.com/593a05ed1ac5dcfe46100c7672389465136a86361e713832aee57e913b3512f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f6d697361692f7068702d636f6e74696e656e74733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/omisai/omisai/php-continents)[![Latest Stable Version](https://camo.githubusercontent.com/8081d4767f76f87222dcca95a0bc9425ce77a0ae18d81d26e1c618d41e82ac89/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6d697361692f7068702d636f6e74696e656e74733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/omisai/php-continents)[![PHP Version Require](https://camo.githubusercontent.com/bcac4566f486d09dae497f40179228f89ecef1b7285a9f585634f518efc8469f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f6f6d697361692f7068702d636f6e74696e656e74732f7068703f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/omisai/php-continents)[![Test](https://github.com/omisai-tech/php-continents/actions/workflows/test.yml/badge.svg)](https://github.com/omisai-tech/php-continents/actions/workflows/test.yml)

PHP Continents Package
======================

[](#php-continents-package)

The PHP Continents Package provides a convenient and object-oriented approach to working with continent data. Designed to integrate continent information into any PHP applications with ease. This package offers easy access to continent names, non-standardized alpha-2 codes and UN M.49 numeric codes. Eventually, more detailed geographical data is coming like subregions and extra locales.

Features
--------

[](#features)

- Easy retrieval of continent names and codes.
- Object-Oriented Programming (OOP) approach for better data management and integration.
- Lightweight and simple to integrate into any PHP project. (8.1+)
- Currently supporting English, Hungarian, German, Spanish, Italian and French languages.
- Future support for subregions and multiple locales, making it versatile for international applications.

Installation
------------

[](#installation)

The PHP Continents Package can be easily installed via Composer.

```
composer require omisai/php-continents
```

Usage
-----

[](#usage)

After installing the package, you can begin to work with continent data. You can work with any continent model or access all of them through a Collection.

```
/**
 * Access through the Collection
 *
 * Consider using the Collection class, if you
 * plan to register it to a service container.
 * It eagerly loads all the continents.
 */
use Omisai\Continents\Collection;

$collection = new Collection();
$continents = $collection->getContinents();

/**
 * Shorthand to use the default english locale
 */
$continents[0]->name; // "Asia"

/**
 * Or using different locale
 */
$continents[0]->getName('fr'); // "Asie"

/**
 * Search for continent based on alpha-2 code
 */
$collection->getContinentByCode('OC'); // Omisai\Continents\Models\Oceania

/**
 * Search for continent based on UN M.49 numeric code
 */
$collection->getContinentByNumeric('010'); // Omisai\Continents\Models\Antarctica

/**
 * Use any continent directly
 */
use Omisai\Continents\Models\Europe;

$europe = new Europe();
$europe->numeric; // "150"
$europe->code; // "EU"
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
./vendor/bin/pest

# or

composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.

Security
--------

[](#security)

Please see [SECURITY.md](.github/SECURITY.md) for details on reporting security vulnerabilities.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

Sponsoring
----------

[](#sponsoring)

If you find this package useful, please consider sponsoring the development: [Sponsoring on GitHub](https://github.com/sponsors/omisai-tech)

Your support helps us maintain and improve this open-source project!

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance82

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

Every ~172 days

Total

5

Last Release

94d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/818e031ac6546efe377b692f91166dc1a6c89b8838ce720b8786e4b15a30db62?d=identicon)[bornemisza](/maintainers/bornemisza)

---

Top Contributors

[![bornemisza](https://avatars.githubusercontent.com/u/22169041?v=4)](https://github.com/bornemisza "bornemisza (34 commits)")

---

Tags

continentcontinentsphpcontinentcontinents

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/omisai-php-continents/health.svg)

```
[![Health](https://phpackages.com/badges/omisai-php-continents/health.svg)](https://phpackages.com/packages/omisai-php-continents)
```

###  Alternatives

[ivolo/disposable-email-domains

disposable domains list

1.4k41.5k1](/packages/ivolo-disposable-email-domains)[lampager/lampager

Rapid pagination without using OFFSET

3778.3k5](/packages/lampager-lampager)[calderawp/dismissible-notice

Creates a dismissible--via AJAX--admin nag.

151.3k](/packages/calderawp-dismissible-notice)

PHPackages © 2026

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