PHPackages                             friskals/countries - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. friskals/countries

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

friskals/countries
==================

Nominal formatting and phone validation for Laravel Framework

v2.2.3(4y ago)016.7k↑90.5%2MITPHPPHP &gt;=7.2

Since Nov 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/friskals/countries)[ Packagist](https://packagist.org/packages/friskals/countries)[ RSS](/packages/friskals-countries/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)DependenciesVersions (14)Used By (0)

Countries
=========

[](#countries)

This package allow you

- Set the nominal and currency format of a value based on the given country.
- Validate and transform phone number of a particular country.

Instalation
-----------

[](#instalation)

- Install with composer

```
composer require friskals/countries
```

For Laravel &gt;=5.5 that's all. You don't need any configurations since it's already handled by `Laravel Package Discovery` but for Lumen you need a simple configuration.

Configuration
-------------

[](#configuration)

The default are set in `config/country.php`.

#### Lumen

[](#lumen)

- Load your configuration file in `bootstrap/app.php````
     $app->configure('country');
    ```
- And register your provider at `bootstrap/app.php````
    $app->register(Friskals\Countries\Providers\CountryServiceProvider::class);
    ```

Usage
-----

[](#usage)

- Format Currency

```
$nominal_currency = Friskals\Countries\CountryLoader::country('ID')->format_currency(1000);
```

- Format Nominal

```
$nominal = Friskals\Countries\CountryLoader::country('ID')->format_nominal(1000);
```

- Validate Phone

```
$is_validated = Friskals\Countries\CountryLoader::country('ID')->validate_phone('+6208120812081');
```

- Transform Phone

```
$phone = Friskals\Countries\CountryLoader::country('ID')->transform_phone('+6208120812081');
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.3% 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 ~5 days

Recently: every ~12 days

Total

11

Last Release

1644d ago

Major Versions

v1.0.0 → v2.0.02021-11-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43237248?v=4)[Friska Laurenzia Sianturi](/maintainers/friskals)[@friskals](https://github.com/friskals)

---

Top Contributors

[![friskals](https://avatars.githubusercontent.com/u/43237248?v=4)](https://github.com/friskals "friskals (25 commits)")[![friskalaurenzia](https://avatars.githubusercontent.com/u/92417834?v=4)](https://github.com/friskalaurenzia "friskalaurenzia (3 commits)")

---

Tags

countryformat-currencyformat-number

### Embed Badge

![Health badge](/badges/friskals-countries/health.svg)

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

###  Alternatives

[jackocnr/intl-tel-input

A JavaScript library for entering and validating international telephone numbers

8.2k281.9k2](/packages/jackocnr-intl-tel-input)[laravel-validation-rules/country-codes

Validate country codes.

34499.6k](/packages/laravel-validation-rules-country-codes)[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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