PHP code example of dvsa / mot-cpms-forms

1. Go to this page and download the library: Download dvsa/mot-cpms-forms 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/ */

    

dvsa / mot-cpms-forms example snippets


    
    return array(
        'modules' => array(
            // ...
            'CpmsForms',
        ),
        // ...
    );
    

$form = $this->getCpmsPaymentForm($payment);

$form = $this->getCpmsPaymentForm($payment);
if ($form instanceof \Laminas\Http\Response) {
    return $form;
}
bash
    cp vendor/dvsa/mot-cpms-forms/config/cpms-forms.global.php.dist config/autoload/cpms-forms.global.php
    

 echo $this->renderCpmsForm($form); 


return [
    'cpms_forms' => [
        'partials' => [
            'form' => 'custom-path/custom-script.phtml',
        ],
    ],
];

return [
    'cpms_forms' => [
        'payment_types' => [
            'direct_debit' => [
                'form' => 'Scheme\Form\CustomDirectDebitPaymentForm'
            ],
        ],
    ],
];