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.1k↓50%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 1mo 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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

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

1597d 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

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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