PHP code example of devcccc / magento2-address-validation

1. Go to this page and download the library: Download devcccc/magento2-address-validation 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/ */

    

devcccc / magento2-address-validation example snippets


php bin/magento module:enable CCCC_Addressvalidation
php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy

cd {{YOUR MAGENTO MAIN DIRECTORY}}
cp vendor/endereco/magento2-address-validation/Controller/Proxy/DirectProxy.php pub/

RewriteRule cccc_adressvalidation/direct DirectProxy.php [L]

location /cccc_adressvalidation/direct {
    proxy_pass https://<your domain>>/DirectProxy.php;
}