PHPackages                             ernysans/laraworld - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. ernysans/laraworld

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

ernysans/laraworld
==================

Countries, Languages and Time Zones Package for Laravel 5.\*

v1.0.2(8y ago)1757.0k↓61.5%12[2 issues](https://github.com/ernysans/laraworld/issues)MITPHPPHP &gt;=5.6

Since Apr 21Pushed 8y ago3 watchersCompare

[ Source](https://github.com/ernysans/laraworld)[ Packagist](https://packagist.org/packages/ernysans/laraworld)[ Docs](https://github.com/ernysans/laraworld)[ RSS](/packages/ernysans-laraworld/feed)WikiDiscussions master Synced 2d ago

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

[![Build Status](https://camo.githubusercontent.com/1b0b13d46d9a61770dcfbad457061b1f18f20602559e5e6d23eaf2e25425b88d/68747470733a2f2f7472617669732d63692e6f72672f65726e7973616e732f6c617261776f726c642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ernysans/laraworld) [![Latest Stable Version](https://camo.githubusercontent.com/3dd3e30bf73cfcf4af2d7bce9d7ff791d50c5fef7e65d4046b7b4f8b0da1770b/68747470733a2f2f706f7365722e707567782e6f72672f65726e7973616e732f6c617261776f726c642f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/ernysans/laraworld) [![Total Downloads](https://camo.githubusercontent.com/f8ffcc8a58cdda355010db9a704f7ff63fd5bde417ebcadc28d83a23c7ee496b/68747470733a2f2f706f7365722e707567782e6f72672f65726e7973616e732f6c617261776f726c642f646f776e6c6f6164733f666f726d61743d666c6174)](https://packagist.org/packages/ernysans/laraworld) [![Latest Unstable Version](https://camo.githubusercontent.com/3617eb30b4be2dee9f794ad3c83dbd1c997600b6b50b5e8dcba2271cf0404b53/68747470733a2f2f706f7365722e707567782e6f72672f65726e7973616e732f6c617261776f726c642f762f756e737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/ernysans/laraworld) [![License](https://camo.githubusercontent.com/fb5695ca0b57b0c6faa4e4b632129ff6a52d851752e3daf990328c5ccf0ce9b6/68747470733a2f2f706f7365722e707567782e6f72672f65726e7973616e732f6c617261776f726c642f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/ernysans/laraworld)

Laraworld
=========

[](#laraworld)

Countries, Languages and Time Zones Package for Laravel and Lumen 5.\*

Please check the [Known Issues](https://github.com/ernysans/laraworld/issues) section before reporting a new one.

[![ScreenShot](../master/src/img/screenshot.jpg?raw=true)](../master/src/img/screenshot.jpg?raw=true)

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

[](#installation)

This package can be installed through Composer.

```
$ composer require ernysans/laraworld
```

When using Laravel there is a service provider that you can make use of.

```
// app/config/app.php

'providers' => [
    '...',
    ErnySans\Laraworld\LaraworldServiceProvider::class,
];
```

Configure the aliases to make use of the Facades.

```
// app/config/app.php

'aliases' => [
    '...',
    'Countries' => ErnySans\Laraworld\Facades\Countries::class,
    'TimeZones' => ErnySans\Laraworld\Facades\TimeZones::class,
    'Languages' => ErnySans\Laraworld\Facades\Languages::class,
];
```

> If you are using Laravel 5.5 it's not required to manually add the service provider and aliases.

Publish Migrations and Seeds.

```
$ php artisan vendor:publish --provider="ErnySans\Laraworld\LaraworldServiceProvider"
```

Prepare Seeds.

```
// database/seeds/DatabaseSeeder.php

class DatabaseSeeder extends Seeder
{

    public function run()
    {
        // Seed the countries
        $this->call(CountriesTableSeeder::class);

        // Seed the Time Zones
        $this->call(TimeZonesTableSeeder::class);

        // Seed the Languages
        $this->call(LanguagesTableSeeder::class);
    }
}
```

Run Migrations and Seed the tables

```
$ php artisan migrate
$ php artisan db:seed
```

Use
---

[](#use)

These methods are provided:

### Collection Methods

[](#collection-methods)

When using Laravel you can work with the [Collection Available Methods](https://laravel.com/docs/master/collections).

### JSON file (Optional)

[](#json-file-optional)

Use this methods If you want to get all the data from the JSON file:

- `Countries::allJSON()`: Get all the countries from the JSON file.
- `Languages::allJSON()`: Get all the languages from the JSON file.
- `TimeZones::allJSON()`: Get all the time zones from the JSON file.

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

[](#contributing)

Thank you for considering contributing to the Laraworld package!. Remember to run PHPUnit tests before sending a new pull request.

License
-------

[](#license)

This package is open-sourced licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 98.5% 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 ~303 days

Total

3

Last Release

3120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed2360c5605cfd80d745b5f4a63a5ec8e8df5bac95a5b13d30514dc968168d27?d=identicon)[ernysans](/maintainers/ernysans)

---

Top Contributors

[![ernysans](https://avatars.githubusercontent.com/u/3885445?v=4)](https://github.com/ernysans "ernysans (66 commits)")[![jonagoldman](https://avatars.githubusercontent.com/u/1297559?v=4)](https://github.com/jonagoldman "jonagoldman (1 commits)")

---

Tags

phpjsonlaravellanguageslumencountriestimemigrationscountryseedtimezone

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ernysans-laraworld/health.svg)

```
[![Health](https://phpackages.com/badges/ernysans-laraworld/health.svg)](https://phpackages.com/packages/ernysans-laraworld)
```

###  Alternatives

[nnjeim/world

Laravel countries, states, cities, currencies, languages and IP geolocation

978475.9k8](/packages/nnjeim-world)[annexare/countries-list

Continents &amp; countries: ISO 3166-1 alpha-2 code, name, ISO 639-1 languages, capital, ISO 4217 currencies (symbols &amp; numeric codes), native name, phone. JSON, CSV and SQL.

1.3k253.6k1](/packages/annexare-countries-list)[danharper/laravel-jsonx

Add XML support to a JSON-speaking Laravel API with a single middleware via JSONx

1859.1k](/packages/danharper-laravel-jsonx)

PHPackages © 2026

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