mipotech / yii2-request-logger
A useful class for generating a thorough log of all requests and responses. Especially suitable for REST APIs built upon the Yii2 framework.
Installs: 6 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- php: 7.*
- yiisoft/yii2: ~2.0.0
README
A useful class for generating a thorough log of all requests and responses. Especially suitable for REST APIs built upon the Yii2 framework.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mipotech/yii2-response-logger "*"
or add
"mipotech/yii2-response-logger": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \mipotech\responselogger\AutoloadExample::widget(); ?>``` ./yii migrate --migrationPath=@vendor/mipotech/yii2-request-logger/migrations