{"id":37234604,"url":"https://github.com/phramework/query-log","last_synced_at":"2026-01-15T03:59:53.391Z","repository":{"id":57041092,"uuid":"48172945","full_name":"phramework/query-log","owner":"phramework","description":"query-log environment for phramework","archived":false,"fork":false,"pushed_at":"2016-02-24T20:49:23.000Z","size":136,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-20T12:48:10.505Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://phramework.github.io/query-log/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phramework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-17T12:23:34.000Z","updated_at":"2016-02-13T21:10:12.000Z","dependencies_parsed_at":"2022-08-24T01:10:37.546Z","dependency_job_id":null,"html_url":"https://github.com/phramework/query-log","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/phramework/query-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fquery-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fquery-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fquery-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fquery-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phramework","download_url":"https://codeload.github.com/phramework/query-log/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phramework%2Fquery-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-15T03:59:52.730Z","updated_at":"2026-01-15T03:59:53.384Z","avatar_url":"https://github.com/phramework.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# query-log\nquery-log environment for phramework\n\n## Usage\n\n```bash\ncomposer require phramework/query-log\n```\n\nFor example:\n\n```php\n\u003c?php\nuse \\Phramework\\Phramework;\nuse \\Phramework\\QueryLog;\n\n$settings = [\n    'database' =\u003e [\n          'adapter' =\u003e 'mysql',\n          'host' =\u003e '',\n          'username' =\u003e '',\n          'password' =\u003e '',\n          'name' =\u003e '',\n          'port' =\u003e 3306\n    ],\n    'query-log' =\u003e [\n        'database' =\u003e [\n            'adapter' =\u003e '\\\\Phramework\\\\Database\\\\MySQL',\n            'host' =\u003e '',\n            'username' =\u003e '',\n            'password' =\u003e '',\n            'name' =\u003e '',\n            'port' =\u003e 3306\n        ]\n    ]\n];\n\n$phramework = new Phramework(\n    $settings,\n    new \\Phramework\\URIStrategy\\URITemplate([])\n);\n\n\\Phramework\\Database\\Database::setAdapter(\n    new \\Phramework\\Database\\MySQL($settings['database'])\n);\n\n//Create QueryLog object\n$queryLog = new QueryLog($settings['query-log']);\n\n$queryLog-\u003eregister(\n    ['client' =\u003e 'my-additional-parameter']\n);\n\n$phramework-\u003einvoke();\n```\n\n## Development\n### Install\n\n```bash\ncomposer update\n```\n\n### Test and lint code\n\n```bash\ncomposer lint\ncomposer test\n```\n\n# License\nCopyright 2015 Xenofon Spafaridis\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n```\nhttp://www.apache.org/licenses/LICENSE-2.0\n```\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphramework%2Fquery-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphramework%2Fquery-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphramework%2Fquery-log/lists"}