PHP code example of mdespeuilles / markupfieldbundle

1. Go to this page and download the library: Download mdespeuilles/markupfieldbundle 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/ */

    

mdespeuilles / markupfieldbundle example snippets




// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Mdespeuilles\MarkupFieldBundle\MdespeuillesMarkupFieldBundle(),
    // ...
);
bash
php composer.phar 
 php


use Mdespeuilles\MarkupFieldBundle\Form\Type\MarkupType;

public function buildForm(FormBuilder $builder, array $options)
{
    // ...
    $builder->add('markup', MarkupType::class, [
        'markup' => 'hello word !'
    ]);
    // ...
}