PHPackages                             php-ecma-intl/test - 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. php-ecma-intl/test

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

php-ecma-intl/test
==================

A conformance test suite for pecl/ecma\_intl

01.5k[2 PRs](https://github.com/php-ecma-intl/test/pulls)PHPCI passing

Since Nov 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/php-ecma-intl/test)[ Packagist](https://packagist.org/packages/php-ecma-intl/test)[ RSS](/packages/php-ecma-intl-test/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

php-ecma-intl/test
==================

[](#php-ecma-intltest)

 **Conformance test suite for pecl/ecma\_intl**

About
-----

[](#about)

This is a PHP port of the `intl402` test suite for [ECMA-402](https://tc39.es/ecma402/)from [Test262](https://github.com/tc39/test262). This port is up-to-date with Test262, as of the version of Test262 included in this project as a Git submodule at `./resources/test262`.

Since PHP does not follow the same conventions as JavaScript, PHP code implementing ECMA-402 will differ from the specification. Where it differs, this test suite follows the reference implementation for [pecl/ecma\_intl](https://github.com/php-ecma-intl/ext). Polyfills may use this test suite to ensure compatibility with pecl/ecma\_intl.

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 --dev php-ecma-intl/test
```

Usage
-----

[](#usage)

Use these tests to ensure your polyfill library conforms to the pecl/ecma\_intl implementation of [ECMA-402](https://tc39.es/ecma402/).

To add these tests to your project's test runner, add the following to your project's `phpunit.xml` or `phpunit.xml.dist` file:

```

        ./vendor/php-ecma-intl/test/tests

```

Then, create a file (if you don't already have one) at `tests/Pest.php`, and add the following to it:

```
include_once __DIR__ . '/vendor/php-ecma-intl/test/harness/testIntl.php';
```

Now, you may run `vendor/bin/pest --testsuite "ecma_intl conformance"` to execute the conformance tests provided by this package.

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)

pecl/ecma\_intl is copyright © [php-ecma-intl](https://github.com/php-ecma-intl)contributors and licensed for use under the terms of the BSD 3-Clause "New" or "Revised" License (BSD-3-Clause). Please see [LICENSE](LICENSE) for more information.

php-ecma-intl/test may utilize copyrighted material under license from the following projects:

- [Test262: ECMAScript Test Suite](https://github.com/tc39/test262)

Please see [NOTICE](NOTICE) for more information.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 72.9% 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.

### Community

Maintainers

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

---

Top Contributors

[![ramsey](https://avatars.githubusercontent.com/u/42941?v=4)](https://github.com/ramsey "ramsey (105 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (38 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (1 commits)")

---

Tags

ecma402i18nicuinternationalizationintll10nlocalizationphptestunicode

### Embed Badge

![Health badge](/badges/php-ecma-intl-test/health.svg)

```
[![Health](https://phpackages.com/badges/php-ecma-intl-test/health.svg)](https://phpackages.com/packages/php-ecma-intl-test)
```

###  Alternatives

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1927.0k1](/packages/smmoosavi-php-gettext)

PHPackages © 2026

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