Download the PHP package devcccc/magento2-address-validation without Composer

On this page you can find all versions of the php package devcccc/magento2-address-validation. 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 magento2-address-validation

magento2-address-validation

For Magento: Extended address validation against webservices

About

Address validation module for Magento 2.2, 2.3, 2.4 using Endereco as Webservice for validation. A separate Endereco Account (https://www.endereco.de/) is required.

This supports the address validation on checkout for the shipping address and some autocomplete functions - the eMail validation is integrated as beta version as well.

Installation

After installation:

If your Magento installation is running into production mode you have also to deploy the static content files:

For development systems we suggest a cleanup of the generated and pub/static/frontend-folders:

Direct requests

Important: to use the faster direct requests additional webserver configuration is required.

For nginx you have to add a new location-block within your nginx-Site-Configuration. For Apache you have to copy the DirectProxy.php-file and add a Rewrite in the .htaccess.

For further instructions see below.

Apache Webserver

After installation/update copy the DirectProxy-File to the pub-directory:

Edit the .htaccess in the pub-folder. Add a rewrite for the DirectProxy.php. Its required that this rewrite is done before the index.php rewrite.

Add the following line to pub/.htaccess:

To do this before the index.php-rewrite your pub/.htaccess might look like:

Now enable the direct requests in the settings of the extension within the Magento Admin-Backend.

Menu: Stores => Configuration. Select "CCCC Config" => Address validation with Endereco => "Use direct requests" => Yes

nginx Webserver

For nginx a new location-Block within your nginx-site-configuration is required. Add this location:

This location-Block should be placed directly in the server-block for the Magento-shop.

In the existing nginx-configuration we have to extend the script-whitelist of the "PHP entry point for main application". Normally it will look like:

You must add DirectProxy here:

Now restart the nginx and then enable the direct requests in the settings of the extension within the Magento Admin-Backend.

Menu: Stores => Configuration. Select "CCCC Config" => Address validation with Endereco => "Use direct requests" => Yes


All versions of magento2-address-validation with dependencies

PHP Build Version
Package Version
Requires magento/framework Version 102.0.*|103.0.*
ext-curl Version *
ext-json Version *
php Version ^7.4.0|^8.0.0|^8.1.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 devcccc/magento2-address-validation contains the following files

Loading the files please wait ....