承接 alimranahmed/hit-logger 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alimranahmed/hit-logger

Composer 安装命令:

composer require alimranahmed/hit-logger

包简介

Laravel request and response logger. Highly encouraged from spatie/laravel-http-logger

README 文档

README

A Laravel 5 package for logging http request and response. Usually we find ourself in a situation that our testing team or an API user is claming that they had sent a request and got an unexpected response. This package gives us the opportunity to look back what really was the request to our laravel application and what was actual the response from our application. This makes our life lot easir.

This pakcage provides a Middleware that can be used wherever you need(e.g. all the request and response, only a single route's requests and responses, only API requests and responses, only web requests and responses etc).

Built this package being highly inspired by spatie/laravel-http-logger which is a nice package to log only the requests.

Installation:

Run the following command in your terminal while you are in the root directory of your project:

composer require alimranahmed/hit-logger

If you want to change the default behavour of the package you can publish and change the config file. Run the following command to publish the config file:

php artisan vendor:publish --provider="AlImranAhmed\HitLogger\HitLoggerServiceProvider" --tag="config" 

Usage

This package has a middleware that can be used to log request and response. Register the middleware in your app/Http/Karnel.php file as below:

protected $middleware = [
    // ...
    
    \AlImranAhmed\HitLogger\Middlewares\HitLogger::class,
];

License

The MIT License (MIT)

统计信息

  • 总下载量: 31.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 17
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固