{"id":20603053,"url":"https://github.com/flightphp/tracy-extensions","last_synced_at":"2025-04-15T01:54:49.938Z","repository":{"id":218322256,"uuid":"746131162","full_name":"flightphp/tracy-extensions","owner":"flightphp","description":"A set of panels in Tracy's debug tool specifically for Flight ","archived":false,"fork":false,"pushed_at":"2025-04-09T14:24:47.000Z","size":192,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T14:34:57.764Z","etag":null,"topics":["debug","debugging","flight-framework","flightphp","tracy","tracy-debugger","tracy-panel"],"latest_commit_sha":null,"homepage":"https://docs.flightphp.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flightphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-21T06:26:26.000Z","updated_at":"2025-04-09T14:24:15.000Z","dependencies_parsed_at":"2024-03-12T02:06:36.216Z","dependency_job_id":null,"html_url":"https://github.com/flightphp/tracy-extensions","commit_stats":null,"previous_names":["flightphp/tracy-extensions"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightphp%2Ftracy-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightphp%2Ftracy-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightphp%2Ftracy-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flightphp%2Ftracy-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flightphp","download_url":"https://codeload.github.com/flightphp/tracy-extensions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991540,"owners_count":21194894,"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":["debug","debugging","flight-framework","flightphp","tracy","tracy-debugger","tracy-panel"],"created_at":"2024-11-16T09:15:49.134Z","updated_at":"2025-04-15T01:54:49.919Z","avatar_url":"https://github.com/flightphp.png","language":"PHP","readme":"Tracy Flight Panel Extensions\n------\n\nThis is a set of extensions to make working with Flight a little richer.\n\n- Flight - Analyze all Flight variables.\n- Database - Analyze all queries that have run on the page (if you correctly initiate the database connection)\n- Request - Analyze all `$_SERVER` variables and examine all global payloads (`$_GET`, `$_POST`, `$_FILES`)\n- Session - Analyze all `$_SESSION` variables if sessions are active.\n\nThis is the Panel\n\n![Flight Bar](flight-tracy-bar.png)\n\nAnd each panel displays very helpful information about your application!\n\n![Flight Data](flight-var-data.png)\n![Flight Database](flight-db.png)\n![Flight Request](flight-request.png)\n\nInstallation\n-------\nRun `composer require flightphp/tracy-extensions --dev` and you're on your way!\n\nConfiguration\n-------\nThere is very little configuration you need to do to get this started. You will need to initiate the Tracy debugger prior to using this [https://tracy.nette.org/en/guide](https://tracy.nette.org/en/guide):\n\n```php\n\u003c?php\n\nuse Tracy\\Debugger;\nuse flight\\debug\\tracy\\TracyExtensionLoader;\n\n// bootstrap code\nrequire __DIR__ . '/vendor/autoload.php';\n\nDebugger::enable();\n// You may need to specify your environment with Debugger::enable(Debugger::DEVELOPMENT)\n\n// if you use database connections in your app, there is a \n// required PDO wrapper to use ONLY IN DEVELOPMENT (not production please!)\n// It has the same parameters as a regular PDO connection\n$pdo = new PdoQueryCapture('sqlite:test.db', 'user', 'pass');\n// or if you attach this to the Flight framework\nFlight::register('db', PdoQueryCapture::class, ['sqlite:test.db', 'user', 'pass']);\n// now whenever you make a query it will capture the time, query, and parameters\n\n// This connects the dots\nif(Debugger::$showBar === true) {\n\tnew TracyExtensionLoader(Flight::app());\n}\n\n// more code\n\nFlight::start();\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflightphp%2Ftracy-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflightphp%2Ftracy-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflightphp%2Ftracy-extensions/lists"}