2017 © Pedro Peláez
 

symfony-bundle ip-field-symfony3-bundle

Ip form type for symfony 3 forms

image

evotodi/ip-field-symfony3-bundle

Ip form type for symfony 3 forms

  • Monday, March 26, 2018
  • by evotodi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 6 % Grown

The README.md

Ip Field Type Symfony Bundle

Provide an ip field for symfony forms., (*1)

Fork of https://github.com/Vixys/VxIpFieldTypeBundle, (*2)

Requirements

  • Symfony 4.*

Installation

Composer

``` json composer require evotodi/ip-field-type-bundle, (*3)


## Usage ### Create field Create your form : ``` php $form = $this->createFormBuilder() ->add('ip', 'ipfield') ->add('send', 'submit')->getForm();

You can specify the ip version (ipv4, ipv6 or mac) : ``` php ->add('ip', 'ipfield', array('version' => 'ipv4', 'readonly' => true)), (*4)


``` php ->add('ip', 'ipfield', array('version' => 'ipv6', 'disabled' => true))

``` php ->add('ip', 'ipfield', array('version' => 'mac')), (*5)


### View ``` html {% form_theme form '@EvotodiIpFieldType/Form/ipfield_widget.html.twig' %} {{ 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_rest(form) }} {{ form_end(form) }} {% block javascripts %} {{ parent() }} {% endblock %}

Licence

This bundle is under the MIT Licence., (*6)

The Versions

26/03 2018

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/evotodi/EvIpFieldTypeBundle

Ip form type for symfony 3 forms

  Sources   Download

MIT

The Requires

 

by Justin Davis

form bundle symfony ip field type symfony bundle symfony-3

26/03 2018

1.0.3

1.0.3.0 https://github.com/evotodi/EvIpFieldTypeBundle

Ip form type for symfony 3 forms

  Sources   Download

MIT

The Requires

 

by Justin Davis

form bundle symfony ip field type symfony bundle symfony-3

26/03 2018

1.0.2

1.0.2.0 https://github.com/evotodi/EvIpFieldTypeBundle

Ip form type for symfony 3 forms

  Sources   Download

MIT

The Requires

 

by Justin Davis

form bundle symfony ip field type symfony bundle symfony-3

23/03 2018

1.0.1

1.0.1.0 https://github.com/evotodi/EvIpFieldTypeBundle

Ip form type for symfony 3 forms

  Sources   Download

MIT

The Requires

 

by Justin Davis

form bundle symfony ip field type symfony bundle symfony-3

23/03 2018

1.0.0

1.0.0.0 https://github.com/evotodi/EvIpFieldTypeBundle

Ip form type for symfony 3 forms

  Sources   Download

MIT

The Requires

 

by Justin Davis

form bundle symfony ip field type symfony bundle symfony-3

23/03 2018

dev-master

9999999-dev https://github.com/evotodi/EvIpFieldTypeBundle

Ip form type for symfony 3 forms

  Sources   Download

MIT

The Requires

 

by Justin Davis

form bundle symfony ip field type symfony bundle symfony-3