{"id":50704081,"url":"https://github.com/perftools/php-profiler-laravel","last_synced_at":"2026-06-09T10:30:20.373Z","repository":{"id":356635580,"uuid":"1233417597","full_name":"perftools/php-profiler-laravel","owner":"perftools","description":"Laravel Octane bridge for perftools/php-profiler","archived":false,"fork":false,"pushed_at":"2026-05-19T21:46:13.000Z","size":81,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-20T00:54:58.815Z","etag":null,"topics":["laravel","octane","profiler","xhgui","xhprof"],"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/perftools.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T00:02:26.000Z","updated_at":"2026-05-18T08:06:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/perftools/php-profiler-laravel","commit_stats":null,"previous_names":["perftools/php-profiler-laravel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/perftools/php-profiler-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perftools%2Fphp-profiler-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perftools%2Fphp-profiler-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perftools%2Fphp-profiler-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perftools%2Fphp-profiler-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perftools","download_url":"https://codeload.github.com/perftools/php-profiler-laravel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perftools%2Fphp-profiler-laravel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34103355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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","octane","profiler","xhgui","xhprof"],"created_at":"2026-06-09T10:30:19.614Z","updated_at":"2026-06-09T10:30:20.355Z","avatar_url":"https://github.com/perftools.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# perftools/php-profiler-laravel\n\nLaravel Octane bridge for `perftools/php-profiler`.\n\nThis package wires the core profiler into the Laravel Octane request lifecycle.\n\nIt starts profiling on `RequestReceived` and stops profiling on `RequestTerminated`.\n\n## Scope\n\n- Laravel Octane only.\n- No FPM, queue worker, or Artisan profiling lifecycle is provided here.\n- Runtime failures are logged and do not break the request.\n\n## Requirements\n\n- PHP 8.2+\n- `illuminate/support` ^10.0, ^11.0, ^12.0, or ^13.0\n- `laravel/octane` ^2.3\n- `perftools/php-profiler` ^1.4\n\n## Installation\n\nInstall the package into a Laravel Octane application:\n\n```bash\ncomposer require perftools/php-profiler-laravel\n```\n\n## Service provider\n\nLaravel package discovery registers the provider automatically:\n\n`Xhgui\\Profiler\\Laravel\\XhguiProfilerServiceProvider`\n\nIf you disable discovery, register that provider manually.\n\n## Configuration\n\nPublish the package config:\n\n```bash\nphp artisan vendor:publish --tag=xhgui-config\n```\n\nThe package owns the `enabled` toggle and ships a default file-based saver\nexample. Profiling is disabled by default, so enabling it is an explicit opt-in.\nThe resulting `config/xhgui.php` is passed to the core profiler.\n\nDefault config shape:\n\n```php\n\u003c?php\n\nuse Xhgui\\Profiler\\Profiler;\n\nreturn [\n    'enabled' =\u003e env('XHGUI_ENABLED', false),\n    'save.handler' =\u003e env('XHGUI_SAVE_HANDLER', Profiler::SAVER_FILE),\n    'save.handler.file' =\u003e [\n        'filename' =\u003e env('XHGUI_SAVE_FILE', storage_path('logs/xhgui/profile.jsonl')),\n    ],\n];\n```\n\nYou can replace the saver-related settings with any config supported by the core\n`perftools/php-profiler` library.\n\nIf you set the `profiler.request_context_provider` key in `config/xhgui.php`\nbefore profiling starts, for example:\n\n```php\nuse App\\Profiling\\AppRequestContextProvider;\n\nreturn [\n    'profiler.request_context_provider' =\u003e new AppRequestContextProvider(),\n];\n```\n\nThe package ignores it. Laravel Octane integration always injects its own\n`OctaneRequestContextProvider` so request context is captured from the current\nOctane request.\n\nUnder Octane, profiler configuration is treated as static for the lifetime of a\nworker. Restart Octane workers after changing `config/xhgui.php` for new\nprofiler settings to take effect.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for local development setup and\nverification, package behavior notes, and scope reminders.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperftools%2Fphp-profiler-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperftools%2Fphp-profiler-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperftools%2Fphp-profiler-laravel/lists"}