Download the PHP package 1eonardo-dev/monitoring-client without Composer

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

Monitoring Platform Client

A lightweight PHP client for reporting events (crashes, exceptions, logs) to Monitoring Platform.

Packagist Version PHP Version Downloads

The Laravel/Yii2 adapter classes are only loaded if the corresponding framework is installed (lazy autoloading + suggest in composer.json), so they never break plain-PHP projects.

The two packages

This package targets modern PHP projects. If you still run PHP 5, use the legacy package instead:

Package PHP Framework adapters Type hints
1eonardo-dev/monitoring-client 7.4+ Laravel & Yii2 Yes
1eonardo-dev/monitoring-client-legacy 5.6+ None (pure PHP) No

Requirements

Installation

Quick start

API

MonitoringClient

Method Description
captureException(\Throwable $e, array $context = [], ?string $level = null): bool Report an exception.
captureMessage(string $message, string $level = 'info', array $context = []): bool Report a log message.
captureEvent(Event $event): bool Report a custom event.
send(array $data): bool Low-level send with a raw payload.

DTOs

Custom endpoint path

By default events are sent to {baseUrl}/api/v1/events. You can change the path via the path argument (or the path key in Config::fromArray):

Laravel integration

The package auto-discovers its service provider and facade. Optionally publish the config:

Add to your .env:

Then use the facade:

Yii2 integration

Custom transport

Implement LeonardoDev\Monitoring\Transport\Transport to use your own HTTP client (Guzzle, cURL, etc.):

Tests

Changelog

See CHANGELOG.md.

License

MIT. See LICENSE.


All versions of monitoring-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.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 1eonardo-dev/monitoring-client contains the following files

Loading the files please wait ...