With the Activities method, you can measure any activity in the system that is critical to the functioning of the application or business.

The Streply\Activity method consists of the following parameters:

function Activity(
    string $message,
    array $params = [],
    ?string $channel = null
): void
  • (string) $message - Name of the activity
  • (array) $params - Parameters
  • (?string) $channel - Activity channel (group)

To send an activity, e.g. a correct login to the system, simply call:


For example, the ID of the logged-in user can be added as a parameter:

Streply\Activity('users.login', ['userId' => 1]);

or by adding parameters and a group:

        'userId' => 1