PHPackages                             senseexception/intl-format - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. senseexception/intl-format

ActiveLibrary[Localization &amp; i18n](/categories/localization)

senseexception/intl-format
==========================

A wrapper library for PHP to format and internationalize values in messages like sprintf

3.2.0(1y ago)123.2k42MITPHPPHP ^8.2CI passing

Since Apr 11Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/SenseException/intl-format)[ Packagist](https://packagist.org/packages/senseexception/intl-format)[ RSS](/packages/senseexception-intl-format/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (21)Used By (2)

Intl-Format
===========

[](#intl-format)

A wrapper library for PHP to format and internationalize values in messages like sprintf

[![Latest Stable Version](https://camo.githubusercontent.com/14cabb31f43401d99690e811accc4217a8376814ff5afda3925046b5d4f2f274/68747470733a2f2f706f7365722e707567782e6f72672f73656e7365657863657074696f6e2f696e746c2d666f726d61742f762f737461626c65)](https://packagist.org/packages/senseexception/intl-format)[![PHP from Packagist](https://camo.githubusercontent.com/a8dcda4ddd52925d49f737886642d358d05fae1f6d2ff05ac8beb56f86d7594c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73656e7365657863657074696f6e2f696e746c2d666f726d61742e737667)](https://packagist.org/packages/senseexception/intl-format)[![Tests](https://github.com/SenseException/intl-format/workflows/Tests/badge.svg)](https://github.com/SenseException/intl-format/actions?query=workflow%3ATests)[![Static Analysis](https://github.com/SenseException/intl-format/workflows/Static%20Analysis/badge.svg)](https://github.com/SenseException/intl-format/actions?query=workflow%3A%22Static+Analysis%22)[![License](https://camo.githubusercontent.com/d0db4dd389345fb7e43f5e8b3e03114cfb2c6807b06c830f1e22cc7130dded0d/68747470733a2f2f706f7365722e707567782e6f72672f73656e7365657863657074696f6e2f696e746c2d666f726d61742f6c6963656e7365)](https://packagist.org/packages/senseexception/intl-format)

### Why using this library?

[](#why-using-this-library)

Internationalisation is a very important matter when a PHP project covers more than just one country. Every country has its own format for numbers, date or time. The Intl component offers functionality to handle all the formats you need, but not always in a simple way.

This library formats messages using the Intl component of PHP and offers a sprintf-like API.

Example:

```
echo $intlFormat->format('Today\'s number is %number', 1000.3);
// echo "Today's number is 1'000,3" in case of locale de_CH
// echo "Today's number is 1,000.3" in case of locale en_US
```

It is also easy extensible with your own custom formats.

Documentation
-------------

[](#documentation)

Read more about this library in the [documentation](http://senseexception.github.io/intl-format).

Does it affect [GDPR](https://www.eugdpr.org/) somehow?
-------------------------------------------------------

[](#does-it-affect-gdpr-somehow)

Intl-Format itself uses the given data (e.g. timezone, locale) only for formatting purposes with the help of the PHP Intl extension.

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

[](#installation)

You can install this with [Composer](https://getcomposer.org/).

```
composer require senseexception/intl-format

```

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance61

Regular maintenance activity

Popularity29

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.7% 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 ~167 days

Recently: every ~244 days

Total

19

Last Release

681d ago

Major Versions

0.4.x-dev → 1.0.02016-11-08

1.x-dev → 2.0.02019-10-29

2.x-dev → 3.0.02022-06-23

PHP version history (9 changes)0.1.0PHP ^5.6|^7.0

1.0.0PHP ^7.0

1.3.0PHP &gt;=7.1.5

1.x-devPHP &gt;=7.2

2.1.0PHP ^7.3

2.2.0PHP ^7.3 || ^8.0

2.3.0PHP ^7.4 || ^8.0

3.0.0PHP ^8.0

3.2.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1313ebcff68bc6cca3b8a1921c3ba13f83351212f707c15a5506880371371c47?d=identicon)[SenseException](/maintainers/SenseException)

---

Top Contributors

[![SenseException](https://avatars.githubusercontent.com/u/859964?v=4)](https://github.com/SenseException "SenseException (378 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![heiglandreas](https://avatars.githubusercontent.com/u/91998?v=4)](https://github.com/heiglandreas "heiglandreas (2 commits)")

---

Tags

formattericuinternationalizationintlintl-formatsprintftimezoneformatterintlinternationalizationi18nicumessagessprintf

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/senseexception-intl-format/health.svg)

```
[![Health](https://phpackages.com/badges/senseexception-intl-format/health.svg)](https://phpackages.com/packages/senseexception-intl-format)
```

###  Alternatives

[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[aplus/language

Aplus Framework Language Library

2351.7M15](/packages/aplus-language)[aura/intl

The Aura Intl package provides internationalization tools, specifically message translation.

898.3M4](/packages/aura-intl)[skillshare/formatphp

Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

8029.6k](/packages/skillshare-formatphp)[delight-im/i18n

Internationalization and localization for PHP

625.2k3](/packages/delight-im-i18n)[tigrov/yii2-country

Country data for Yii2 using Intl extension and more.

151.1k](/packages/tigrov-yii2-country)

PHPackages © 2026

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