wizacha / new-relic-polyfill
Polyfill for the New Relic PHP extension
Installs: 37 174
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 3
Forks: 1
Open Issues: 0
This package is auto-updated.
Last update: 2020-10-20 08:15:12 UTC
README
Polyfill for the New Relic PHP extension.
Using New Relic's PHP extension requires us to use this pattern everywhere:
if (extension_loaded('newrelic')) { newrelic_set_appname($name); }
This package is a polyfill re-declaring all the functions provided by New Relic when the extension is not installed. In other words, after installing this polyfill you can rely on the function to exist:
newrelic_set_appname($name);
If the extension is installed, everything will work as expected. If not (for example on your development machine) nothing will happen.
Installation
composer require wizacha/new-relic-polyfill
That's all you need to do!