PHPackages                             gheith3/omancities - 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. gheith3/omancities

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

gheith3/omancities
==================

for migrate oman governorates and cities

v1.0.0(4y ago)45MITPHPPHP ^8.0

Since Nov 15Pushed 4y agoCompare

[ Source](https://github.com/gheith3/OmanCities)[ Packagist](https://packagist.org/packages/gheith3/omancities)[ Docs](https://github.com/gheith3/omancities)[ GitHub Sponsors](https://github.com/:vendor_name)[ RSS](/packages/gheith3-omancities/feed)WikiDiscussions main Synced 3w ago

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

Seed oman governorates and cities
=================================

[](#seed-oman-governorates-and-cities)

---

This repo can be used to scaffold Oman Governorates and cities.

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

[](#installation)

You can install the package via composer:

```
composer require gheith3/omancities
```

publish and run the migrations with:

```
php artisan vendor:publish --tag="omancities-migrations"
php artisan migrate
```

seed cities to database:

```
php artisan omancities:seed
```

Usage
-----

[](#usage)

```
$governorate = OmanGovernorate::first();
$governorate->load("cities");
echo $governorate->name;

//$city = OmanCity::find(10);
$city = $governorate->cities()->first();
echo $city->name;
```

this package is support for [spatie/laravel-translatable](https://github.com/spatie/laravel-translatable) package

```
echo $governorate->name;

echo $governorate->getTranslation("name", "ar");
echo $governorate->getTranslation("name", "en");

echo $city->getTranslation("name", "ar");
echo $city->getTranslation("name", "en");
```

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [Gheith Alrawahi](https://github.com/gheith3)
- [spatie](https://github.com/spatie)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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 ~0 days

Total

2

Last Release

1691d ago

Major Versions

v0.1.0 → v1.0.02021-11-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12110656?v=4)[Gheith Alrawahi](/maintainers/gheith3)[@gheith3](https://github.com/gheith3)

---

Top Contributors

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

---

Tags

laravelgheith3omancities

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/gheith3-omancities/health.svg)

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[finity-labs/fin-mail

A powerful email template manager and composer for Filament with dynamic token replacement, template versioning, and inline email sending.

284.5k1](/packages/finity-labs-fin-mail)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)

PHPackages © 2026

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