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(7mo ago)1540↓87.5%MITPHP

Since Aug 20Pushed 4mo 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 today

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

43

—

FairBetter than 89% of packages

Maintenance70

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

131d 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

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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