guennichi/performist-bundle
A PHP bundle that packages Performist for easy integration, with configuration and service wiring out of the box. Install via Composer, enable the bundle, and use its services with minimal boilerplate—ideal for adding performance-oriented tooling to existing applications.
Start by confirming the package version and reading the v1.3.0 release section plus the README section on context objects and custom attributes. The release is additive, so existing context usage should continue to work; the first thing to inspect is how the package exposes attribute reads/writes on a context object (methods, array access, or a facade).
Minimal setup:
composer require <vendor>/<package>:^1.3
php artisan vendor:publish --tag=<package>-config
php artisan config:clear
withAttribute(), put(), or array access, and whether reads are get()/property access.First use case: attach request-scoped metadata to the context in middleware, then read it from a log processor or queued job. For example, set a tenant ID or correlation ID on the context during the request, and include it in structured logs without passing it through every service method.
Use context attributes for cross-cutting request metadata rather than domain data. Good candidates are tenant IDs, trace/correlation IDs, feature-flag snapshots, locale, actor IDs, and integration request identifiers. Domain entities and large payloads belong in services/models, not context attributes.
Common workflows:
handle() rather than assuming the full request context exists.Integration tips:
Context facade, align custom attribute names with existing Context::add() usage to avoid two parallel metadata systems.tenant.id, trace.id, to reduce collisions with package internals or future attributes.php artisan config:clear and re-cache in deployment. If the new attribute behavior is configurable, test with cached config enabled.How can I help you explore Laravel packages today?