Skip to content
/ phai Public

Phai - Application Insights PHP middleware

License

Notifications You must be signed in to change notification settings

kaz29/phai

Repository files navigation

Phai - Application Insights PHP middleware

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

About

Phai - Application Insights PHP middleware

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages