A Cloudflare plugin for Magento2.
Branch: master
Clone or download
Latest commit 4277818 Jul 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Backend GH-58: Fixes #58 bug where uncaught DB errors were breaking setup:upg… May 24, 2017
Block/Adminhtml Change compiled js reference path May 18, 2018
Controller/Adminhtml/Plugin PI-1074: Magento 2.1 DI can't inject PHP classes from non Magento mod… Apr 20, 2017
Model composer run format Mar 1, 2017
Observer composer run format Mar 1, 2017
Setup Added Model/KeyValue.php and Model/ResourceModel/KeyValue.php so Mage… Jun 15, 2016
Test PI-1074: Magento 2.1 DI can't inject PHP classes from non Magento mod… Apr 20, 2017
etc PI-1074: Magento 2.1 DI can't inject PHP classes from non Magento mod… Apr 20, 2017
view/adminhtml Release 1.1.8 Jul 23, 2018
.gitignore Added .gitignore Mar 1, 2017
.travis.yml Removing PHP 5.5 from supported versions. Mar 2, 2017
CHANGELOG.md Release 1.1.8 Jul 23, 2018
CONTRIBUTING.md
LICENSE.md PI-863: cloudflare/cloudflare-frontend to 2.6.0 and CloudFlare -> Clo… Nov 14, 2016
README.md Update README.md Oct 9, 2017
composer.json
composer.lock PI-1065: Fixed bug which broke compilation in production mode. Apr 5, 2017
registration.php

README.md

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/