PHP code example of yassinehamouten / ux-dropzone-multiple

1. Go to this page and download the library: Download yassinehamouten/ux-dropzone-multiple 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/ */

    

yassinehamouten / ux-dropzone-multiple example snippets


// ...
use yassinehamouten\UX\DropzoneMultiple\Form\DropzoneMultipleType;

class CommentFormType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            // ...
            ->add('photo', DropzoneMultipleType::class)
            // ...
        ;
    }

    // ...
}

// ...
use yassinehamouten\UX\DropzoneMultiple\Form\DropzoneMultipleType;

class CommentFormType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            // ...
            ->add('photo', DropzoneMultipleType::class, [
                'attr' => ['data-controller' => 'mydropzone'],
            ])
            // ...
        ;
    }

    // ...
}
sh
php vendor/bin/phpunit