Download the PHP package dvsa/mot-cpms-forms without Composer

On this page you can find all versions of the php package dvsa/mot-cpms-forms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mot-cpms-forms

CPMS Forms

Introduction

A module to provide re-usable HTML Forms that can be used by scheme to process payments.

Installation

Main Setup

With composer

The recommended way to install is through Composer.

Post installation

  1. Enable it in your application.config.php file.

  2. Copy configuration file to your autoload config folder (optional)

Usage

For payment form generation please use controller plugin:

The plugin takes one argument, which must be an object that implements one of the following interfaces:

As it might be obvious, payment interface determines required data, that needs to be provided by scheme and tells Form Factory Service to build specific for that interface form.

Each payment type always requires common information (amount, user id, etc.), so it's convenient to use CpmsForms\Payment\BasePaymentTrait trait in your payment classes.

The cpms-forms plugin validates post data and redirects to cpms-forms controller for processing. In regard to redirection, the proper usage should be:

The form should be passed to ViewModel and be rendered via view cpms-forms helper plugin:

Configuration

View scripts

If custom view script is needed to render payment form, please add this in your configuration file:

It's also possible to provide view script for specific payment type:

Form customization

Custom form class can be provided for specific payment type. This class must extends CpmsForms\Form\PaymentForm class to be considered as a valid. See example:

Form elements can be also customized. The following example sets html class of mandate_collection_day element and adds e-mail field:

For more options, payment types and form elements please see config/module.config.php

Contributing

Please refer to our Contribution Guide.

TO DO


All versions of mot-cpms-forms with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
dvsa/mot-cpms-client Version ^3.1.0
laminas/laminas-session Version ^2.11
laminas/laminas-http Version ^2.14
laminas/laminas-mvc Version ^3.3.0
laminas/laminas-inputfilter Version ^2.13
laminas/laminas-validator Version ^2.14
laminas/laminas-json Version ^3.3
laminas/laminas-router Version ^3.4
laminas/laminas-math Version ^3.3
laminas/laminas-hydrator Version ^4.2
laminas/laminas-dependency-plugin Version ^2.6.0
laminas/laminas-i18n Version ^2.9
laminas/laminas-cache-storage-adapter-apcu Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dvsa/mot-cpms-forms contains the following files

Loading the files please wait ....