Skip to content
A Cloudflare plugin for Magento2.
PHP JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
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
CONTRIBUTING.md update compiled.js name May 19, 2018
LICENSE.md PI-863: cloudflare/cloudflare-frontend to 2.6.0 and CloudFlare -> Clo… Nov 14, 2016
README.md
composer.json BSD-3 to BSD-3-Clause Jul 23, 2018
composer.lock
registration.php Moving app/code/CloudFlare/Plugin to root as part of composer package… Jun 2, 2016

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/

You can’t perform that action at this time.