{"id":21541778,"url":"https://github.com/ngmy/laravel-query-log-tracker","last_synced_at":"2026-05-18T04:07:36.812Z","repository":{"id":41948882,"uuid":"250820058","full_name":"ngmy/laravel-query-log-tracker","owner":"ngmy","description":"The Laravel package which log all executed queries","archived":false,"fork":false,"pushed_at":"2023-02-01T21:44:23.000Z","size":901,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T20:44:29.013Z","etag":null,"topics":["laravel","library","logging","php","query-log"],"latest_commit_sha":null,"homepage":null,"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/ngmy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"ngmy","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://flattr.com/@ngmy"}},"created_at":"2020-03-28T14:48:18.000Z","updated_at":"2025-01-20T09:43:45.000Z","dependencies_parsed_at":"2023-02-17T11:31:02.909Z","dependency_job_id":null,"html_url":"https://github.com/ngmy/laravel-query-log-tracker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ngmy/laravel-query-log-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Flaravel-query-log-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Flaravel-query-log-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Flaravel-query-log-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Flaravel-query-log-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngmy","download_url":"https://codeload.github.com/ngmy/laravel-query-log-tracker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngmy%2Flaravel-query-log-tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33164672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["laravel","library","logging","php","query-log"],"created_at":"2024-11-24T05:07:38.421Z","updated_at":"2026-05-18T04:07:36.777Z","avatar_url":"https://github.com/ngmy.png","language":"PHP","funding_links":["https://github.com/sponsors/ngmy","https://flattr.com/@ngmy"],"categories":[],"sub_categories":[],"readme":"# Laravel Query Log Tracker\n\n[![Latest Stable Version](https://poser.pugx.org/ngmy/laravel-query-log-tracker/v/stable)](https://packagist.org/packages/ngmy/laravel-query-log-tracker)\n[![Total Downloads](https://poser.pugx.org/ngmy/laravel-query-log-tracker/downloads)](https://packagist.org/packages/ngmy/laravel-query-log-tracker)\n[![Latest Unstable Version](https://poser.pugx.org/ngmy/laravel-query-log-tracker/v/unstable)](https://packagist.org/packages/ngmy/laravel-query-log-tracker)\n[![License](https://poser.pugx.org/ngmy/laravel-query-log-tracker/license)](https://packagist.org/packages/ngmy/laravel-query-log-tracker)\n[![composer.lock](https://poser.pugx.org/ngmy/laravel-query-log-tracker/composerlock)](https://packagist.org/packages/ngmy/laravel-query-log-tracker)\u003cbr\u003e\n[![PHP CI](https://github.com/ngmy/laravel-query-log-tracker/workflows/PHP%20CI/badge.svg)](https://github.com/ngmy/laravel-query-log-tracker/actions?query=workflow%3A%22PHP+CI%22)\n[![Coverage Status](https://coveralls.io/repos/github/ngmy/laravel-query-log-tracker/badge.svg?branch=master)](https://coveralls.io/github/ngmy/laravel-query-log-tracker?branch=master)\n\nThe Laravel package which log all executed queries.\n\n## Demo\n\n![Demo](https://ngmy.github.io/laravel-query-log-tracker/demo.gif)\n\n## Features\n\nLaravel Query Log Tracker has the following features:\n\n* Log all executed queries with the following items:\n  * SQL with bound parameters\n  * Bind parameters\n  * Execution time in milliseconds\n  * Connection name\n* Disable/Enable query logging at runtime\n* More configurations:\n  * Log level\n  * Exclude patterns\n  * Channels\n\n## Requirements\n\nLaravel Query Log Tracker has the following requirements:\n\n* PHP \u003e= 7.3\n* Laravel \u003e= 6.0\n\n## Installation\n\nExecute the Composer `require` command:\n```console\ncomposer require ngmy/laravel-query-log-tracker\n```\nThis will update your `composer.json` file and install this package into the `vendor` directory.\n\nIf you don't use package discovery, add the service provider to the `providers` array in the `config/app.php` file:\n```php\nNgmy\\LaravelQueryLogTracker\\QueryLogTrackerServiceProvider::class,\n```\n\nIf you don't use package discovery, add the alias to the `aliases` array in the `config/app.php` file:\n```php\n'QueryLogTracker' =\u003e Ngmy\\LaravelQueryLogTracker\\QueryLogTrackerFacade::class,\n```\n\n### Publishing Configuration\n\nExecute the Artisan `vendor:publish` command:\n```console\nphp artisan vendor:publish\n```\nThis will publish the configuration file to the `config/ngmy-query-log-tracker.php` file.\n\nYou can also use the tag to execute the command:\n```console\nphp artisan vendor:publish --tag=ngmy-query-log-tracker\n```\n\nYou can also use the service provider to execute the command:\n```console\nphp artisan vendor:publish --provider=\"Ngmy\\LaravelQueryLogTracker\\QueryLogTrackerServiceProvider\"\n```\n\n## Usage\n\n### Log Queries\n\nExecute queries with Laravel. That's all.\n\n### Disable Log\n\nThere are two ways to disable log.\n```php\nQueryLogTracker::beginDisable();\n// Execute queries for which you want to disable log\nQueryLogTracker::endDisable();\n```\n```php\nQueryLogTracker::disable(function () {\n    // Execute queries for which you want to disable log\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngmy%2Flaravel-query-log-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngmy%2Flaravel-query-log-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngmy%2Flaravel-query-log-tracker/lists"}