Download the PHP package blueweb/newrelic-nette without Composer

On this page you can find all versions of the php package blueweb/newrelic-nette. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package newrelic-nette

New Relic integration for Nette Framework

Repository https://github.com/blueweb/newrelic-nette.

Requirements

Library blueweb/newrelic-nette requires PHP 7.4 or higher.

Installation

The best way to install blueweb/newrelic-nette is using Composer:

You have to also add this to your config.neon:

Extension is automatically disabled in development environment. You can also manually enable/disable the extension:

enable covers transaction naming and error reporting. The features below are configured independently of it.

Custom parameters

Blueweb\NewRelic\NewRelic is registered as an autowired service and is the way to put custom parameters on the current transaction:

Parameters are sent right away. They are kept in memory as well, so the service also works without the newrelic extension - nothing is sent, but the values can still be inspected (see the Tracy panel below).

For values known only at the end of the transaction there is a provider, which is evaluated in register_shutdown_function(), i.e. while the transaction is still open:

Query statistics

When dibi/dibi is installed and a Dibi\Connection service exists, queries are counted automatically and sent as db.queryCount, db.queryTime (ms), db.select, db.insert, db.update, db.delete, db.transaction, db.connect and db.other.

Note that listening on Dibi\Connection::$onEvent makes dibi build a Dibi\Event for every query, including a debug_backtrace() call - a small but non-zero cost per query. Turn the statistics off with queryStats: false.

Tracy panel

In development a bar panel lists all custom parameters that would be sent to New Relic, together with the information whether the extension is loaded at all. It renders the deferred provider values too.


All versions of newrelic-nette with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
nette/application Version ~3.0
nette/di Version ~3.0
nette/schema Version ~1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package blueweb/newrelic-nette contains the following files

Loading the files please wait ...