PHPackages                             skillshare/formatphp - 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. skillshare/formatphp

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

skillshare/formatphp
====================

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

1.0.2(2y ago)8029.6k—8%5[3 PRs](https://github.com/Skillshare/formatphp/pulls)MITPHPPHP ^7.4 || ^8

Since Nov 15Pushed 2y ago28 watchersCompare

[ Source](https://github.com/Skillshare/formatphp)[ Packagist](https://packagist.org/packages/skillshare/formatphp)[ RSS](/packages/skillshare-formatphp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (30)Versions (21)Used By (0)

 [![Skillshare](./docs/skillshare-logo.svg)](./docs/skillshare-logo.svg)

FormatPHP
=========

[](#formatphp)

 [![Source Code](https://camo.githubusercontent.com/e84ac38bfb2f48f4d18b62f289468c2b4a68ae380a6dbf453f45e6a98ec874cd/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d736b696c6c73686172652f666f726d61747068702d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/skillshare/formatphp) [![Download Package](https://camo.githubusercontent.com/394f28710d32c575c41da84b832c8885395c2c778c41ecb89f77750afbfdd2b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736b696c6c73686172652f666f726d61747068702e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://packagist.org/packages/skillshare/formatphp) [![PHP Programming Language](https://camo.githubusercontent.com/c7912a30985acd31894287f4d9c4a13be54d65fe005bd50acad6c5a01d54639e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736b696c6c73686172652f666f726d61747068702e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d253233383839324246)](https://php.net) [![Read License](https://camo.githubusercontent.com/899a6730776ddd1f8e6790381b5aefc6b15d368056967f7865686dbc19553208/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736b696c6c73686172652f666f726d61747068702e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d6461726b6379616e)](https://github.com/skillshare/formatphp/blob/main/LICENSE) [![Build Status](https://camo.githubusercontent.com/3df2747ad228d892b03ef0015d950b1403a18a37bf72b94d0280750598aaa77e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736b696c6c73686172652f666f726d61747068702f636f6e74696e756f75732d696e746567726174696f6e2e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6f676f3d676974687562)](https://github.com/skillshare/formatphp/actions/workflows/continuous-integration.yml) [![Codecov Code Coverage](https://camo.githubusercontent.com/bd660472306d62a57a3005eb2df0177d0063b8875e9f70efa05dcd73e072092e/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f736b696c6c73686172652f666f726d61747068703f6c6162656c3d636f6465636f76266c6f676f3d636f6465636f76267374796c653d666c61742d737175617265)](https://codecov.io/gh/skillshare/formatphp) [![Psalm Type Coverage](https://camo.githubusercontent.com/f1c810dcc6fad8bb45859d3b43d5ee63492241443358774d3c6bd902d38aa7d9/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d687474707325334125324625324673686570686572642e646576253246676974687562253246736b696c6c7368617265253246666f726d6174706870253246636f766572616765)](https://shepherd.dev/github/skillshare/formatphp)

 **A library to help internationalize PHP apps.**
 Made with ❤️ by [Skillshare Engineering](https://skillshare.com)

About
-----

[](#about)

Inspired by [FormatJS](https://formatjs.io) and [ECMAScript 2023 Internationalization API (ECMA-402)](https://tc39.es/ecma402/), this library provides an API to format dates, numbers, and strings, including pluralization and translation. FormatPHP is powered by PHP's [intl extension](https://www.php.net/intl) and integrates with [Unicode CLDR](http://cldr.unicode.org/)and [ICU Message syntax](https://unicode-org.github.io/icu/userguide/format_parse/messages)standards. It requires [libicu](https://icu.unicode.org) version 69.1 or higher.

This project adheres to a [code of conduct](CODE_OF_CONDUCT.md). By participating in this project and its community, you are expected to uphold this code.

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

[](#installation)

Install this package as a dependency using [Composer](https://getcomposer.org).

```
composer require skillshare/formatphp
```

Usage
-----

[](#usage)

For usage details and examples, see the full documentation at [docs.formatphp.dev](https://docs.formatphp.dev).

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

[](#contributing)

Contributions are welcome! To contribute, please familiarize yourself with [CONTRIBUTING.md](CONTRIBUTING.md).

Coordinated Disclosure
----------------------

[](#coordinated-disclosure)

Keeping user information safe and secure is a top priority, and we welcome the contribution of external security researchers. If you believe you've found a security issue in software that is maintained in this repository, please read [SECURITY.md](SECURITY.md) for instructions on submitting a vulnerability report.

Copyright and License
---------------------

[](#copyright-and-license)

The skillshare/formatphp library is copyright © [Skillshare, Inc.](https://www.skillshare.com)and licensed for use under the terms of the MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.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 ~38 days

Recently: every ~139 days

Total

18

Last Release

999d ago

Major Versions

0.7.1 → 1.0.02022-06-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/f514481fa9cfdfd5dbcaccb3e5b480f18ea05ebf331cddf9b1c5a2a96a78fef5?d=identicon)[ramsey](/maintainers/ramsey)

![](https://www.gravatar.com/avatar/22edf19debf414a3e3129f051de69c6a8186ade60fe42b35aaca0ad2127615a7?d=identicon)[skillshare-eng](/maintainers/skillshare-eng)

---

Top Contributors

[![ramsey](https://avatars.githubusercontent.com/u/42941?v=4)](https://github.com/ramsey "ramsey (78 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")

---

Tags

formatphpglobalizationi18ninternationalizationintll10nlocalizationphppod-platform-ecosystemsstring-extractiontranslationintllocalizationinternationalizationi18ntranslatetranslationformatlocaleformattingglobalization

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/skillshare-formatphp/health.svg)

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

###  Alternatives

[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)[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)[delight-im/i18n

Internationalization and localization for PHP

625.2k3](/packages/delight-im-i18n)[fisharebest/localization

A lightweight localization database and translation tools, with data from the CLDR, IANA, ISO, etc.

3191.1k2](/packages/fisharebest-localization)[jrmajor/fluent

Fluent localization system for PHP

2716.9k5](/packages/jrmajor-fluent)

PHPackages © 2026

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