For information regarding using Magento & Cloudflare, please see this support article.
From the magento2 root directory run the following commands:
composer require cloudflare/cloudflare-magentocomposer updatebin/magento setup:upgradebin/magento setup:di:compile
- Up to Magento2 CE 2.2.0
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/.
composer testcomposer lintcomposer format
vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist vendor/cloudflare/cloudflare-magento/Test/Unit/