{"id":37003348,"url":"https://github.com/antonmarin/traceable-pdo","last_synced_at":"2026-01-14T00:33:00.762Z","repository":{"id":50819397,"uuid":"79221554","full_name":"antonmarin/traceable-pdo","owner":"antonmarin","description":"Adds trace to sql statement. Know the source of your queries!","archived":true,"fork":false,"pushed_at":"2021-05-28T20:00:32.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T06:46:51.371Z","etag":null,"topics":["debug","pdo","sql","trace"],"latest_commit_sha":null,"homepage":"","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/antonmarin.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":"2017-01-17T11:35:37.000Z","updated_at":"2024-05-29T18:45:02.000Z","dependencies_parsed_at":"2022-09-24T21:21:01.093Z","dependency_job_id":null,"html_url":"https://github.com/antonmarin/traceable-pdo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/antonmarin/traceable-pdo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmarin%2Ftraceable-pdo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmarin%2Ftraceable-pdo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmarin%2Ftraceable-pdo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmarin%2Ftraceable-pdo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antonmarin","download_url":"https://codeload.github.com/antonmarin/traceable-pdo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antonmarin%2Ftraceable-pdo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["debug","pdo","sql","trace"],"created_at":"2026-01-14T00:33:00.051Z","updated_at":"2026-01-14T00:33:00.750Z","avatar_url":"https://github.com/antonmarin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# traceable-pdo\n\nAdds trace to your sql statement\n\n[![Build Status](https://travis-ci.org/antonmarin/traceable-pdo.svg?branch=master)](https://travis-ci.org/antonmarin/traceable-pdo)\n[![Latest Stable Version](https://poser.pugx.org/antonmarin/traceable-pdo/v/stable)](https://packagist.org/packages/antonmarin/traceable-pdo)\n[![License](https://poser.pugx.org/antonmarin/traceable-pdo/license)](https://packagist.org/packages/antonmarin/traceable-pdo)\n\n[![Code Climate](https://codeclimate.com/github/antonmarin/traceable-pdo/badges/gpa.svg)](https://codeclimate.com/github/antonmarin/traceable-pdo)\n[![Test Coverage](https://codeclimate.com/github/antonmarin/traceable-pdo/badges/coverage.svg)](https://codeclimate.com/github/antonmarin/traceable-pdo/coverage)\n[![Total Downloads](https://poser.pugx.org/antonmarin/traceable-pdo/downloads)](https://packagist.org/packages/antonmarin/traceable-pdo)\n\n## Usage\n\nWhen you use `traceablePDO\\PDO` your statement looks like\n`SELECT 1 /* eJxT0NdSKM7PTVUoKUpMTlUoLinKzEtX0NIHAF05B60= */`\nso to get trace you should just enter in your terminal\n`php -r 'echo gzuncompress(base64_decode(\"eJxT0NdSKM7PTVUoKUpMTlUoLinKzEtX0NIHAF05B60=\"));'`\n\n## Examples\n\n### Yii2\n\nconfig/main.php\n```php\n...\n    'db' =\u003e [\n        'class' =\u003e yii\\db\\Connection::class,\n        'dsn' =\u003e 'mysql:host=localhost;dbname=stay2',\n        'username' =\u003e 'root',\n        'password' =\u003e 'pass',\n        'charset' =\u003e 'utf8',\n        'pdoClass' =\u003e antonmarin\\TraceablePDO\\PDO::class, // this line adds traces\n    ],\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonmarin%2Ftraceable-pdo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantonmarin%2Ftraceable-pdo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantonmarin%2Ftraceable-pdo/lists"}