kaz29/phai

Phai is PSR-15 compliant middleware for Application Insights.

1.0.11 2023-09-08 01:38 UTC

README

Phai is PSR-15 compliant middleware for Application Insights.

Build Status

Installation

Install the latest version with

$ composer require kaz29/phai:dev-master

Basic Usage

Framework Integrations

Frameworks or libraries using PSR-15 can be used very easily with this middleware.

Slim3

How to setup

$ cd examples/slim3
$ composer install
$ env APPLICATION_INSIGHTS_KEY='Your application insights "Instrumentation Key"' php -S localhost:8080 -t public public/index.php

CakePHP-3.x

Hot to setup

$ cd examples/cakephp
$ composer install
$ env APPLICATION_INSIGHTS_KEY='Your application insights "Instrumentation Key"' ./bin/cake server 

Laravel

TBD

Author

Kazuhiro Watanabe - cyo [at] mac.com - https://twitter.com/kaz_29

License

Phai is licensed under the MIT License - see the LICENSE file for details