Skip to content
Phai - Application Insights PHP middleware
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples move cakephp3 example Jan 22, 2020
logs
src fix typo May 7, 2019
tests
.gitignore
LICENSE initial commit May 4, 2019
README.md move cakephp3 example Jan 22, 2020
azure-pipelines.yml Merge remote-tracking branch 'origin/master' into feature/add_ci May 4, 2019
composer.json initial commit May 4, 2019
composer.lock
phpunit-ci.xml fix CI settings May 4, 2019
phpunit.xml.dist initial commit May 4, 2019

README.md

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

You can’t perform that action at this time.