PHP code example of blackknight467 / ayah-bundle

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

    

blackknight467 / ayah-bundle example snippets



// app/appKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new blackknight467\AYAHBundle\AYAHBundle(),
    );
}


    // ...
    $builder->add('ayah', 'ayah'); // That's all !
    // ...


    // ...
    $builder->add('ayah', 'ayah', array(
                'assume_human' => true
            ))

    // ...