Download the PHP package apitoolkit/apitoolkit-laravel without Composer
On this page you can find all versions of the php package apitoolkit/apitoolkit-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download apitoolkit/apitoolkit-laravel
More information about apitoolkit/apitoolkit-laravel
Files in apitoolkit/apitoolkit-laravel
Package apitoolkit-laravel
Short Description A PHP/Laravel SDK Wrapper for APIToolkit. It monitors incoming traffic, gathers the requests and sends the request to the apitoolkit servers.
License MIT
Informations about the package apitoolkit-laravel
Table of Contents
- Installation
- Open Telemetry Configuration
- APItoolkit Middleware Setup
- Contributing and Help
- License
Installation
Kindly run the command below to install the apitoolkit-laravel sdk and required otel packages:
Setup Opentelemetry
Installing opentelemetry extension
After installing the necessary packages, you'll need to install the opentelemetry extention and add it to your php.ini
file
Then add it to your php.ini
file like so.
export the following opentelemetry variables
Setup APItoolkit Middleware
Next, register the middleware in the app/Http/Kernel.php
file under the correct middleware group (e.g., api
) or at the root, like so. This creates a customs spans which captures and sends http request info such as headers, requests and repsonse bodies, matched route etc. for each request
Alternatively, if you want to monitor specific routes, you can register the middleware, like so:
Then you can use the apitoolkit
middleware in your routes like so:
[!NOTE]
The
{ENTER_YOUR_API_KEY_HERE}
demo string should be replaced with the API key generated from the APItoolkit dashboard.
[!IMPORTANT]
To learn more configuration options (redacting fields, error reporting, outgoing requests, etc.), please read this SDK documentation.
Contributing and Help
To contribute to the development of this SDK or request help from the community and our team, kindly do any of the following:
- Read our Contributors Guide.
- Join our community Discord Server.
- Create a new issue in this repository.
License
This repository is published under the MIT license.
All versions of apitoolkit-laravel with dependencies
illuminate/http Version ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
ext-json Version *
ramsey/uuid Version ^4.7
open-telemetry/api Version ^1.1
apitoolkit/common Version ^1.0