{"id":15293855,"url":"https://github.com/alimranahmed/hit-logger","last_synced_at":"2025-04-13T13:31:17.637Z","repository":{"id":56945690,"uuid":"188100532","full_name":"alimranahmed/hit-logger","owner":"alimranahmed","description":"A Laravel package for logging both http request and response","archived":false,"fork":false,"pushed_at":"2022-02-28T11:54:51.000Z","size":11,"stargazers_count":17,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T19:09:05.091Z","etag":null,"topics":["http-logger","laravel","laravel-package","laravel5","logger","request-logger","response-logger"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/alimranahmed/hit-logger","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alimranahmed.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-22T19:24:33.000Z","updated_at":"2024-02-14T09:58:43.000Z","dependencies_parsed_at":"2022-08-21T07:20:23.430Z","dependency_job_id":null,"html_url":"https://github.com/alimranahmed/hit-logger","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimranahmed%2Fhit-logger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimranahmed%2Fhit-logger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimranahmed%2Fhit-logger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alimranahmed%2Fhit-logger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alimranahmed","download_url":"https://codeload.github.com/alimranahmed/hit-logger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248721025,"owners_count":21151031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http-logger","laravel","laravel-package","laravel5","logger","request-logger","response-logger"],"created_at":"2024-09-30T16:53:29.521Z","updated_at":"2025-04-13T13:31:15.458Z","avatar_url":"https://github.com/alimranahmed.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Hit-Logger(Log Http Request and Response)\n\nA 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. \n\nThis 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). \n\nBuilt this package being highly inspired by [spatie/laravel-http-logger](https://github.com/spatie/laravel-http-logger) which is a nice package to log only the requests. \n\n### Installation:\nRun the following command in your terminal while you are in the root directory of your project: \n\n```\ncomposer require alimranahmed/hit-logger\n```\n\nIf you want to change the default behavour of the package you can publish and change the config file. Run the \nfollowing command to publish the config file:\n\n```\nphp artisan vendor:publish --provider=\"AlImranAhmed\\HitLogger\\HitLoggerServiceProvider\" --tag=\"config\" \n```\n\n### Usage\nThis package has a middleware that can be used to log request and response. Register the middleware in your \n`app/Http/Karnel.php` file as below: \n\n```php \nprotected $middleware = [\n    // ...\n    \n    \\AlImranAhmed\\HitLogger\\Middlewares\\HitLogger::class,\n];\n```\n\n### License\nThe MIT License (MIT)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falimranahmed%2Fhit-logger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falimranahmed%2Fhit-logger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falimranahmed%2Fhit-logger/lists"}