dka98 / Cloudflare-Magento

A Cloudflare plugin for Magento2.

Home Page:https://www.cloudflare.com/integrations/magento/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Notice: This plugin has been deprecated and is no longer officially supported by Cloudflare.

For information regarding using Magento & Cloudflare, please see this support article.

Build Status

Installing the Cloudflare Magento2 extension

From the magento2 root directory run the following commands:

  1. composer require cloudflare/cloudflare-magento
  2. composer update
  3. bin/magento setup:upgrade
  4. bin/magento setup:di:compile

Versions of Magento2 supported

  • Up to Magento2 CE 2.2.0

Development

You'll need to get authorization keys from the Magento marketplace and make an auth.json:

{
    "http-basic": {
        "repo.magento.com": {
            "username": "[MAGENTO USERNAME]",
            "password": "[MAGENTO PASSWORD]"
        }
    }
}

This will allow composer install to authenticate against repo.magento.com/.

Development Commands

  1. composer test
  2. composer lint
  3. composer format

Tests

vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/cloudflare/cloudflare-magento/Test/Unit/

About

A Cloudflare plugin for Magento2.

https://www.cloudflare.com/integrations/magento/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:PHP 70.9%Language:JavaScript 18.4%Language:CSS 9.2%Language:HTML 1.5%