1. Go to this page and download the library: Download tentwofour/sf2-form 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/ */
// src/AppBundle/Form/ProfileType.php
use Symfony\Component\Form\AbstractType;
use Ten24\Component\Form\Extension\DataTransformer;
class ProfileType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder,
array $options)
{
$transformer = new PhoneNumberViewTransformer();
// Optionally change the display format, see PhoneNumberFormatter for all possible values
// $transformer->setDisplayFormat(PhoneNumberFormtter::FORMAT_DOTTED)
$builder->add($builder
->create('phoneNumber1',
null,
[
'
// src/AppBundle/Form/ProfileType.php
use Symfony\Component\Form\AbstractType;
use Ten24\Component\Form\Extension\DataTransformer;
class ProfileType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder,
array $options)
{
$transformer = new PostalCodeViewTransformer();
$builder->add($builder
->create('postalCode',
null,
[
'
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.