Download the PHP package arnaud-ritti/mosparo-bundle without Composer

On this page you can find all versions of the php package arnaud-ritti/mosparo-bundle. 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 mosparo-bundle

 

mosparo logo contains a bird with the name Mo and the mosparo text

Symfony Bundle

This bundle adds the required functionality to use mosparo in your Symfony form.

GitHub GitHub checks GitHub release (latest SemVer) Codacy Badge Codacy Badge


Description

With this PHP library you can connect to a mosparo installation and verify the submitted data.

Requirements

To use the plugin, you must meet the following requirements:

Installation

Install this bundle by using composer:

Configuration

1. Register the bundle

Register bundle into config/bundles.php:

2. Add configuration files

Setup bundle's config into config/packages/mosparo.yaml:

Add your variables to your .env file:

Handle multiples configurations

Into your configuration file. ex: config/packages/mosparo.yaml:

Inside your .env files

Usage

How to integrate mosparo in Symfony form:

Additional options

Parameter Type Default value Description
project String default Defines the mosparo project to use for validation. See Handle multiples configurations
allowBrowserValidation Boolean false Specifies whether browser validation should be active.
cssResourceUrl String empty Defines the address at which the browser can load the CSS resources. You can use it if the correct resource address is cached.
designMode Boolean false Used to display the mosparo box in the different states in the mosparo backend. The mosparo box is not functional if this option is set to true.
inputFieldSelector String [name]:not(.mosparo__ignored-field) Defines the selector with which the fields are searched.
loadCssResource Boolean true Determines whether the script should also load the CSS resources during initialization.
requestSubmitTokenOnInit Boolean true Specifies whether a submit token should be automatically requested during initialization. If, for example, the form is reset directly after initialization (with reset()), there is no need for a submit token during initialization, as a new code is requested with the reset.

Ignored fields

Automatically ignored fields

mosparo automatically ignores the following fields:

Manually ignored fields

CSS class

If you give a form field the CSS class mosparo__ignored-field, the field will not be processed by mosparo.

JavaScript initialisation

When initializing the JavaScript functionality, you can define the selector with which the fields are searched (see Parameters of the mosparo field).

Override allowed and verifiable field types

You can also register event listeners (or subscribers) to add or remove field types.

We use here a listener for example.

How to deal with functional and e2e testing:

Mosparo won't allow you to test your app efficiently unless you disable it for the environment you are testing against.

How to disable SSL verification:

In order to support invalid SSL certificats you will need to disable the SSL check.

For multiples configurations:

License

mosparo is open-sourced software licensed under the MIT License. Please see the LICENSE file for the full license.

Contributing

See CONTRIBUTING


All versions of mosparo-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.2
ext-json Version *
symfony/config Version ^5.4 || ^6.0
symfony/form Version ^5.4 || ^6.0
symfony/yaml Version ^5.4 || ^6.0
symfony/dependency-injection Version ^5.4 || ^6.0
symfony/http-kernel Version ^5.4 || ^6.0
symfony/serializer Version ^5.4 || ^6.0
symfony/validator Version ^5.4 || ^6.0
symfony/twig-bundle Version ^5.4 || ^6.0
symfony/framework-bundle Version ^5.4 || ^6.0
symfony/event-dispatcher Version ^5.4 || ^6.0
mosparo/php-api-client Version ^1.0.2
ramsey/uuid Version ^4.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 arnaud-ritti/mosparo-bundle contains the following files

Loading the files please wait ....