Neuron-PHP

RequestReceivedEvent
in package
implements IEvent

Event fired when the MVC application receives an HTTP request.

This event is triggered at the beginning of the request lifecycle, before routing and controller execution.

Use cases:

  • Request logging and analytics
  • Track request volume and patterns
  • Implement custom request filtering or preprocessing
  • Generate audit trails for compliance
  • Monitor API usage and endpoints
  • Track user behavior and navigation patterns

Table of Contents

Interfaces

IEvent
Core event interface for the Neuron event system.

Properties

$ip  : string
$method  : string
$route  : string
$timestamp  : float

Methods

__construct()  : mixed
getName()  : string

Properties

Methods

__construct()

public __construct(string $method, string $route, string $ip, float $timestamp) : mixed
Parameters
$method : string

HTTP method (GET, POST, PUT, DELETE, etc.)

$route : string

Requested route/path

$ip : string

Client IP address

$timestamp : float

Request timestamp (microtime)


        
On this page

Search results