Download the PHP package infaris/monitoring without Composer

On this page you can find all versions of the php package infaris/monitoring. 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 monitoring

Guard App Monitoring for PHP

infaris/monitoring sends requests, routes, cache hits, database queries, errors and logs from a PHP application to Guard by Infaris. It feeds the Performance tab: latency and Apdex per route, the cache hit/miss split, the slowest query shapes, N+1 patterns and the time per layer.

Pure PHP 8.1+, no extension needed. Delivery happens at shutdown, after the response, with a 2 second timeout; telemetry never throws into the app.

Install

All settings: src/Config.php (Config::fromEnv()). The older PULSEGUARD_* names are still read as a fallback.

Shopware 6 and Symfony

config/bundles.php:

The bundle names every request after its route (frontend.detail.page, frontend.navigation.page), captures 5xx exceptions, adds the Server-Timing trace header and, with DoctrineBundle, registers the DBAL middleware so every query becomes a span. Monolog: point a handler at the service infaris_monitoring.monolog_handler.

Requests answered by an HttpCache in front of the kernel never reach the bundle. Start the monitor before the kernel to count them as cache hits: auto_prepend_file (below) or Monitor::start() at the top of public/index.php.

Shopware creates its database connection without DoctrineBundle. For its queries, install the OpenTelemetry extension with PDO instrumentation; the SDK makes its request span their parent, so they land in the same trace:

Laravel

Package discovery registers Infaris\Monitoring\Laravel\GuardServiceProvider: route templates, every query from the query events and logged warnings and errors (reported exceptions included). No middleware.

WordPress

Copy wordpress/infaris-monitoring.php to wp-content/mu-plugins/ (with the SDK in wp-content/mu-plugins/infaris-monitoring/ or via Composer). Routes are page types (wp:single-product, wp:checkout, ...). In wp-config.php:

Any PHP application

Or in code, as early as possible:

Doctrine DBAL 3.2+ and 4 outside Symfony: $config->setMiddlewares([new Infaris\Monitoring\Doctrine\Middleware()]).

What is sent

Development


All versions of monitoring with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
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 infaris/monitoring contains the following files

Loading the files please wait ...