Download the PHP package palzin-apm/palzin-slim without Composer
On this page you can find all versions of the php package palzin-apm/palzin-slim. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download palzin-apm/palzin-slim
More information about palzin-apm/palzin-slim
Files in palzin-apm/palzin-slim
Package palzin-slim
Short Description Real-Time monitoring Slim package using Palzin Monitor (APM).
License MIT
Informations about the package palzin-slim
Real-Time monitoring package using Palzin Monitor
Palzin Monitor offers a comprehensive real-time monitoring platform that allows you to monitor and analyze the performance of your applications. With Palzin Monitor Slim Package, you can effortlessly capture and track all requests without making any code modifications. This feature provides valuable insights into the impact of your methods, database statements, and external requests on the overall user experience.
This package is specifically designed for applications built on the Slim framework.
Requirements
- PHP >= 7.2.0
- Slim >= 4.x
Installation
To install the latest version, use the following composer command:
Register On Container
You need to register the Palzin Monitor (APM) instance inside the application container to make the monitoring agent available within your application. Here's an example of how to register the Palzin Monitor instance:
Consider using environment variables to store your project's INGESTION KEY. If you are using a Slim 4 skeleton, you can add a new container definition in the app/dependencies.php
file.
You can obtain the PALZIN_APM_INGESTION_KEY
and PALZIN_APM_URL
by creating a new project in your Palzin account.
Middleware
To attach the middleware, you can either attach it globally or to specific routes. Here are examples of both:
Attach globally:
Attach to specific routes:
Test
To verify that everything is working correctly, create a test route and open it in the browser http://localhost:8080. Here's an example of a test route:
Add Segment
You can add segments to the
transaction's timeline from route functions. Here's an example of how to add a segment:
If your routes are organized using controllers, you need to inject the container into the controller constructor. Here's an example:
Official Documentation
For more detailed information, please refer to the official documentation.
License
This package is licensed under the MIT license.
All versions of palzin-slim with dependencies
palzin-apm/palzin-php Version ^23.03.08
psr/http-server-middleware Version ^1.0
psr/container Version ^1.0