PHPackages                             evotodi/ip-field-type-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. evotodi/ip-field-type-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

evotodi/ip-field-type-bundle
============================

Ip form type for symfony forms

6.0(4y ago)214MITPHPPHP &gt;=7.4

Since Mar 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/evotodi/ip-field-type-bundle)[ Packagist](https://packagist.org/packages/evotodi/ip-field-type-bundle)[ Docs](https://github.com/evotodi/ip-field-type-bundle)[ RSS](/packages/evotodi-ip-field-type-bundle/feed)WikiDiscussions master Synced 6d ago

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

[![Symfony](https://camo.githubusercontent.com/75640a8af2eb1f88bec55acdbfd1052c4a4734b55418179bbbc411a4bd0374ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d2532333030303030302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d73796d666f6e79266c6f676f436f6c6f723d7768697465)](https://camo.githubusercontent.com/75640a8af2eb1f88bec55acdbfd1052c4a4734b55418179bbbc411a4bd0374ab/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d2532333030303030302e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d73796d666f6e79266c6f676f436f6c6f723d7768697465)[![PhpStorm](https://camo.githubusercontent.com/0a232f095a061b7f45c7d09970563fd5646f07c9f5f9d65d7076871c4ee8a367/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70687073746f726d2d3134333f7374796c653d666f722d7468652d6261646765266c6f676f3d70687073746f726d266c6f676f436f6c6f723d626c61636b26636f6c6f723d626c61636b266c6162656c436f6c6f723d6461726b6f7263686964)](https://camo.githubusercontent.com/0a232f095a061b7f45c7d09970563fd5646f07c9f5f9d65d7076871c4ee8a367/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70687073746f726d2d3134333f7374796c653d666f722d7468652d6261646765266c6f676f3d70687073746f726d266c6f676f436f6c6f723d626c61636b26636f6c6f723d626c61636b266c6162656c436f6c6f723d6461726b6f7263686964)

Ip Field Type Symfony Bundle
============================

[](#ip-field-type-symfony-bundle)

Provide an ip field for symfony forms.

Requirements
------------

[](#requirements)

- Symfony &gt;= 5.4
- PHP &gt;= 7.4

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

[](#installation)

### Composer

[](#composer)

```
composer require evotodi/ip-field-type-bundle
```

Usage
-----

[](#usage)

### Create your form:

[](#create-your-form)

```
$form = $this->createFormBuilder()
	->add('ip', IpType::class) // Defaults to ipV4
	->add('send', 'submit')->getForm();
```

Examples:

```
	->add('ip', IpType::class, array('version' => 'ipv4', 'readonly' => true, 'clear' => false));
```

```
	->add('ip', IpType::class, array('version' => 'ipv6', 'disabled' => true))
```

```
	->add('ip', IpType::class, array('version' => 'mac', 'required' => false))
```

### Options:

[](#options)

TypeOptionValues (defaults are bold)Descriptionstringversion**ipv4**, ipv6, macSets the layout and type of inputbooldisabledtrue, **false**Disables the inputboolreadonlytrue, **false**Makes the input readonlyboolrequired**true**, falseMakes the input requiredboolclear**true**, falseDisplay a clear input link### View:

[](#view)

```
{{ form_start(form) }}
    {{ form_errors(form) }}
		{{ form_widget(form.ip, { 'id': 'my_ip_field', 'class': 'form-control' }) }}
		{{ form_widget(form.mac, { 'id': 'my_mac_field' }) }}
		{{ form_widget(form.gw, { 'id': 'my_gw_field' }) }}
		{{ form_widget(form.netmask) }}
	{{ form_rest(form) }}
{{ form_end(form) }}
```

### Value validity:

[](#value-validity)

The submitted values are not validated. You need to validate them.
Javascript tries to ensure that the values typed are valid but this is not guaranteed.

Licence
-------

[](#licence)

This bundle is under the [MIT Licence](http://opensource.org/licenses/MIT).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 71.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 ~151 days

Recently: every ~202 days

Total

11

Last Release

1465d ago

Major Versions

1.3 → 6.02022-05-13

PHP version history (2 changes)1.0.0PHP &gt;=7.0

6.0PHP &gt;=7.4

### Community

Maintainers

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

---

Top Contributors

[![evotodi](https://avatars.githubusercontent.com/u/1625853?v=4)](https://github.com/evotodi "evotodi (38 commits)")[![Vixys](https://avatars.githubusercontent.com/u/3947243?v=4)](https://github.com/Vixys "Vixys (15 commits)")

---

Tags

symfonybundletypeIPformfieldSymfony BundleMACether

### Embed Badge

![Health badge](/badges/evotodi-ip-field-type-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/evotodi-ip-field-type-bundle/health.svg)](https://phpackages.com/packages/evotodi-ip-field-type-bundle)
```

###  Alternatives

[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9546.7k2](/packages/jbtronics-settings-bundle)[norberttech/aceeditor-bundle

Bundle that integrate excellent JavaScript ace editor into Symfony Form.

28310.8k](/packages/norberttech-aceeditor-bundle)[shapecode/hidden-entity-type-bundle

Hidden field for Symfony entities

28428.6k1](/packages/shapecode-hidden-entity-type-bundle)[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.6k](/packages/ekreative-uuid-extra-bundle)[tito10047/altcha-bundle

A simple package to help integrate Altcha on Symfony.

1610.9k1](/packages/tito10047-altcha-bundle)

PHPackages © 2026

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