yireo/magento2-newrelic2 dev-master

Add NewRelic JS support and PHP tracking to Magento

Type

magento2-module

License

BSD-2-Clause

Requires
Requires (dev)
Suggests

None

Provides

None

Conflicts

None

Replaces

None

Magento 2 module for New Relic

================================ Homepage: http://www.yireo.com/software/magento-extensions/newrelic2

Requirements:

  • Magento 2.0.0 Stable

Instructions for using composer

Use composer to install this extension. First make sure that Magento is installed via composer, and that there is a valid composer.json file present.

Next, install our module using the following command:

composer require yireo/magento2-newrelic2

Next, install the new module into Magento itself:

./bin/magento module:enable Yireo_NewRelic2
./bin/magento setup:upgrade

Check whether the module is succesfully installed in Admin > Stores > Configuration > Advanced > Advanced.

Done.

Instructions for manual copy

We recommend composer to install this package. However, if you want a manual copy instead, these are the steps:

  • Make sure to install New Relic on your server first
  • Make sure to have New Relics PHP module installed and active
  • Upload the files in the source/ folder to the folder app/code/Yireo/NewRelic2 of your site
  • Run php -f bin/magento module:enable Yireo_NewRelic2
  • Run php -f bin/magento setup:upgrade
  • Flush the Magento cache
  • Configure settings under Stores > Configuration > Advanced > Yireo New Relic
  • Done

Unit testing

This extension ships with PHPUnit tests. The generic PHPUnit configuration in Magento 2 will pick up on these tests. To only test Yireo extensions, copy the file phpunit.xml.yireo to your Magento folder dev/tests/unit. Next, from within that folder run PHPUnit. For instance:

phpunit -c phpunit.xml.yireo --bootstrap PATH_TO_MAGENTO/dev/tests/unit/framework/bootstrap.php