PHPackages                             fos1/sf-form-i18n-number-plugin - 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. fos1/sf-form-i18n-number-plugin

ActiveSymfony1-plugin[Validation &amp; Sanitization](/categories/validation)

fos1/sf-form-i18n-number-plugin
===============================

I18n-Number validator and widget for Symfony1

v1.1.0(9mo ago)1547↓90.5%MITPHP

Since Aug 20Pushed 5mo ago6 watchersCompare

[ Source](https://github.com/FriendsOfSymfony1/sfFormI18nNumberPlugin)[ Packagist](https://packagist.org/packages/fos1/sf-form-i18n-number-plugin)[ RSS](/packages/fos1-sf-form-i18n-number-plugin/feed)WikiDiscussions 1.x Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

sfFormI18nNumberPlugin
======================

[](#sfformi18nnumberplugin)

The `sfFormI18nNumberPlugin` is a Symfony1 plugin that provides an widget and validator for internationalized numbers.

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

[](#installation)

### Installation: Symfony 1

[](#installation-symfony-1)

- Install the plugin `symfony plugin:install sfFormI18nNumberPlugin`
- Clear you cache `symfony cc`

### Installation: Composer

[](#installation-composer)

Add the plugin your `composer.json` requirements:

```
  "require": {
    ...
    "fos1/sf-form-i18n-number-plugin": "1.0.*",
    ...

```

Usage
-----

[](#usage)

After you create in your schema a number-field with type double, float or decimal, change your form as follows:

before

```
public function configure() {
  // widgets
  $this->setWidgets(array(
    'number' => new sfWidgetFormInput(),
  ));

  // validators
  $this->setValidators(array(
    'number' => new sfValidatorNumber(),
  ));
}
```

after

```
  public function configure() {
    // widgets
    $this->setWidgets(array(
      'number' => new sfWidgetFormI18nNumber(),
    ));

    // validators
    $this->setValidators(array(
      'number' => new sfValidatorI18nNumber(),
    ));
  }
```

Configuration
-------------

[](#configuration)

The widget and the validator takes the culture to recognize, convert and display numbers from the user-session. If this is not possible or you want to use a different culture than the culture of the user session, you can set a option.

```
  // widgets
  $this->setWidgets(array(
    'number' => new sfWidgetFormI18nNumber(array('culture' => 'fr')),
  ));

  // validators
  $this->setValidators(array(
    'number' => new sfValidatorI18nNumber(array('culture' => 'fr')),
  ));
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance64

Regular maintenance activity

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

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 ~1919 days

Total

3

Last Release

176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a788c96bbcf89371ff0c614ad9f1655363369cb8e17ffd7afbebf046da6dad8?d=identicon)[thepanz](/maintainers/thepanz)

---

Top Contributors

[![thePanz](https://avatars.githubusercontent.com/u/226021?v=4)](https://github.com/thePanz "thePanz (9 commits)")

### Embed Badge

![Health badge](/badges/fos1-sf-form-i18n-number-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/fos1-sf-form-i18n-number-plugin/health.svg)](https://phpackages.com/packages/fos1-sf-form-i18n-number-plugin)
```

###  Alternatives

[toplan/laravel-sms

A mobile phone number validation solution based on laravel

83580.2k2](/packages/toplan-laravel-sms)[drupal/coder

Coder is a library to review Drupal code.

3046.8M629](/packages/drupal-coder)[ph-7/eu-vat-validator

A simple and clean PHP class that validates EU VAT numbers against the central ec.europa.eu database (using the official europa API).

97510.7k1](/packages/ph-7-eu-vat-validator)[hyperf/validation

hyperf validation

122.2M213](/packages/hyperf-validation)[udokmeci/yii2-phone-validator

Modern Yii2 Phone validator wrapper on top of PhoneNumberUtil library also used by Android devices

36227.5k1](/packages/udokmeci-yii2-phone-validator)[snowcap/vat-validation

EU VAT number validation

10112.3k](/packages/snowcap-vat-validation)

PHPackages © 2026

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