PHPackages                             sukohi/php-stripe-i18n - 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. sukohi/php-stripe-i18n

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

sukohi/php-stripe-i18n
======================

A PHP package to localize messages of Stripe\_CardError.

2.0.0(9y ago)13.3kMITPHP

Since Sep 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/php-stripe-i18n)[ Packagist](https://packagist.org/packages/sukohi/php-stripe-i18n)[ RSS](/packages/sukohi-php-stripe-i18n/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

php-stripe-i18n
===============

[](#php-stripe-i18n)

A PHP package to localize messages of Stripe\_CardError.

- This package is inspired by [StripeI18n](https://github.com/ekosz/stripe-i18n) (for Ruby). Thank you, ekosz!

Installation
============

[](#installation)

Execute composer command.

```
composer require sukohi/php-stripe-i18n:1.*

```

Usage
=====

[](#usage)

\[Array\]

```
$stripe_i18n = new \Sukohi\StripeI18n\StripeI18n();
$errors = $stripe_i18n->getErrors('en');
print_r($errors);

```

\[String\]

```
echo $stripe_i18n->getError('processing_error', 'en');

// Or

$default = 'xxx';
echo $stripe_i18n->getError('processing_error', 'en', $default);

```

Contribution
============

[](#contribution)

If you can translate the messages to other languages, please add a file in the following location.

```
./src/locales/**.php

```

And I'm glad if you would create a pull request.
Thank you in advance!

License
=======

[](#license)

This package is licensed under the MIT License.
Copyright 2016 Sukohi Kuhoh

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

3576d ago

Major Versions

1.0.x-dev → 2.0.02016-09-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (6 commits)")

### Embed Badge

![Health badge](/badges/sukohi-php-stripe-i18n/health.svg)

```
[![Health](https://phpackages.com/badges/sukohi-php-stripe-i18n/health.svg)](https://phpackages.com/packages/sukohi-php-stripe-i18n)
```

###  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.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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