PHP code example of nfq-eta / time-duration-type

1. Go to this page and download the library: Download nfq-eta/time-duration-type 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/ */

    

nfq-eta / time-duration-type example snippets


    /**
     * {@inheritdoc}
     */
    public function buildForm(FormBuilderInterface $builder, array $options): void
    {
        $builder
            ->add(
                'time',
                TimeDurationType::class,
                [
                    'store_as' => TimeDurationType::STORE_SECONDS,
                    'display_seconds' => false,
                    '