PHP code example of evotodi / ip-field-type-bundle

1. Go to this page and download the library: Download evotodi/ip-field-type-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

evotodi / ip-field-type-bundle example snippets


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

	->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', '