Download the PHP package inspiredminds/contao-address-verification without Composer

On this page you can find all versions of the php package inspiredminds/contao-address-verification. 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 contao-address-verification

Contao Address Verification

This extension allows you to manage addresses in the back end which can then be verified against in the front end.

The extension provides a module where front end visitors can enter their address. This address will be verified against the stored addresses and different content will then be shown (or different redirects will be executed), depending on the verification result. The module also provides a simple autocomplete script by default. All the entered addresses in the back end will be provided for autocompletion on the street input field of the address. The chosen autocompleted result will be filled in in all input fields (street, number, apartment, city and country).

Address Management

Addresses are divided by Address Groups. Each address group has a name and you can also optionally define custom content via nodes that will be displayed when an address has been verified for the selected groups. Each address currently consists of the following properties:

When editing an address group you also have the possibility to import addresses in bulk through a CSV file. The CSV file needs to have the following format:

The country, or city and country together, can be omitted from the CSV file.

Note: the country needs to be in the ISO 3166-1 Alpha-2 format, e.g. "at" for Austria, "de" for Germany, etc. (upper or lower case does not matter).

Front End Modules

The extension currently provides two modules in total: one for the actual address verification and one module to automatically redirect to a redirect page, if no address verification session was started yet.

Address verification

This module handles the actual address verification process and show the form as well as the subsequent content in the front end. It provides the following settings:

Require address verification session

This module provides a possibility to redirect to a defined page in the front end, if no address verification session was started yet, i.e. if the front end visitor did not enter an address via the Address verification module yet. You can use this module to prevent access to certain pages in such a case.

Session Variable

Once a front end visitor has entered their address, a session will be started and the entered address is available via the address-verification session variable. This variable will contain an array consisting of the entered address, which can then be used in other places in your process.

Modify Form Event

The Address verification module provides an InspiredMinds\ContaoAddressVerification\Event\BuildAddressVerificationFormEvent event with which you can modify the form based on Haste\Form\Form. You can use this event to add additional form fields or validators etc. to the form.

Autocompletion

This extension integrates autoComplete.js for autocompletion, but does not integrate any of its CSS styles by default, as you need to take care of styling yourself. As a starting point you could download the autoComplete.js package and use one of its stylesheets for your own purposes. The stylesheets are also present under web/bundles/contaoaddressverification/css/, so you could also add the following code to a custom mod_address_verification template (or elsewhere):

Likewise, if you want to customize the JavaScript itself or the initialisation of the script, create your own copy of the mod_address_verification template and modify the JavaScript accordingly.


All versions of contao-address-verification with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2 || ^8.0
codefog/contao-haste Version ^4.25
contao/core-bundle Version ^4.9 || ^5.0
inspiredminds/contao-backend-forms Version ^0.3.3 || ^1.0
league/csv Version ^9.7
symfony/config Version ^4.4 || ^5.2 || ^6.1
symfony/dependency-injection Version ^4.4 || ^5.2 || ^6.1
symfony/http-foundation Version ^4.4 || ^5.2 || ^6.1
symfony/http-kernel Version ^4.4 || ^5.2 || ^6.1
symfony/routing Version ^4.4 || ^5.2 || ^6.1
terminal42/contao-node Version ^1.4
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 inspiredminds/contao-address-verification contains the following files

Loading the files please wait ....