PHPackages                             abdomassoun/algeria-wilayas - 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. abdomassoun/algeria-wilayas

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

abdomassoun/algeria-wilayas
===========================

This package is designed to help Laravel developers integrate wilayas data into their projects in the easiest way possible. It includes an enum of wilayas and provides the ability to create a table that includes all the data of wilayas with their information (optional to create a table of wilayas). It also includes a Wilaya model (class).

0.7.0(2y ago)512[2 issues](https://github.com/abdomassoun/Algeria-Wilayas/issues)MITPHPPHP &gt;=8.2

Since May 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/abdomassoun/Algeria-Wilayas)[ Packagist](https://packagist.org/packages/abdomassoun/algeria-wilayas)[ RSS](/packages/abdomassoun-algeria-wilayas/feed)WikiDiscussions master Synced 1mo ago

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

Algeria-Wilayas for Laravel
===========================

[](#algeria-wilayas-for-laravel)

[![Stable Version](https://camo.githubusercontent.com/32bcdbfc46032743fbd626b9a8d3aa9c6425ac39ab475170909928bfbf79349a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f6162646f6d6173736f756e2f416c67657269612d57696c61796173)](https://github.com/abdomassoun/Algeria-Wilayas/releases/tag/v1.0)[![Latest Release](https://camo.githubusercontent.com/3bffb27c3233b22b11e18f72c9f6cb705c7743a3158c2001a5884031b9eaccc7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6162646f6d6173736f756e2f416c67657269612d57696c617961733f636f6c6f723d253233334439393730)](https://github.com/abdomassoun/Algeria-Wilayas/releases/latest)[![License](https://camo.githubusercontent.com/b0f4fa03e4f810fb27c76b692946def0f3e62381c6254ebafe84035d250f1a53/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6162646f6d6173736f756e2f616c67657269612d77696c61796173)](https://packagist.org/packages/abdomassoun/algeria-wilayas)

This package is designed to help Laravel developers integrate wilayas data into their projects in the easiest way possible. It includes an enum of wilayas and provides the ability to create a table that includes all the data of wilayas with their information (optional to create a table of wilayas). It also includes a Wilaya model (class).

Usage
-----

[](#usage)

Here are the step-by-step instructions on how to install:

1. Run the following command to install the package:

    ```
    composer require abdomassoun/algeria-wilayas
    ```

    This command will add the `Wilaya` class to your project, along with a migration for it. It will also create an enum called `WilayaEnum` which includes various functions to work with the enum.
2. (Optional) If you want to create a database seed, run the following command:

    ```
    php artisan vendor:publish --tag=seeders
    ```

    This command will publish the seeders for the package, allowing you to seed the wilayas data into your database.
3. You can now use the `Wilaya` class and the `WilayaEnum` enum in your Laravel project. Here's an example of how to use the enum:

    ```
    use App\Enums\WilayaEnum;

    // Get all wilayas
    $wilayas = WilayaEnum::all();

    // Get the name of a wilaya by its code
    $wilayaName = WilayaEnum::getNameByCode('01');

    // Get the code of a wilaya by its name
    $wilayaCode = WilayaEnum::getCodeByName('Adrar');
    ```

    Feel free to explore the `Wilaya` class and the `WilayaEnum` enum to discover more functions and features.

    For more information, please refer to the [package documentation](https://github.com/abdomassoun/Algeria-Wilayas).

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

[](#contributing)

We welcome and encourage contributions to further develop this package. We appreciate any help and ideas. Please check the [issues](https://github.com/abdomassoun/Algeria-Wilayas/issues) to see how you can contribute.

License
-------

[](#license)

This package is licensed under the MIT License (MIT).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

7

Last Release

737d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81708dc6114868b833224208cd1d7d800e1da4a3d0de6e2c6650d3e43b98b211?d=identicon)[abdomassoun](/maintainers/abdomassoun)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/abdomassoun-algeria-wilayas/health.svg)

```
[![Health](https://phpackages.com/badges/abdomassoun-algeria-wilayas/health.svg)](https://phpackages.com/packages/abdomassoun-algeria-wilayas)
```

###  Alternatives

[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[eecli/addon-templates

Templates for the eecli generate:addon command.

386.2k1](/packages/eecli-addon-templates)

PHPackages © 2026

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