{"id":20381841,"url":"https://github.com/beyondcode/laravel-debugbar-companion","last_synced_at":"2025-10-28T16:40:00.358Z","repository":{"id":55149255,"uuid":"326962586","full_name":"beyondcode/laravel-debugbar-companion","owner":"beyondcode","description":"The Laravel DebugBar companion app","archived":false,"fork":false,"pushed_at":"2021-01-07T22:14:57.000Z","size":201,"stargazers_count":294,"open_issues_count":11,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-10-20T19:45:10.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/beyondcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-05T10:23:06.000Z","updated_at":"2025-06-08T04:31:15.000Z","dependencies_parsed_at":"2022-08-14T13:31:15.455Z","dependency_job_id":null,"html_url":"https://github.com/beyondcode/laravel-debugbar-companion","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/beyondcode/laravel-debugbar-companion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Flaravel-debugbar-companion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Flaravel-debugbar-companion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Flaravel-debugbar-companion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Flaravel-debugbar-companion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyondcode","download_url":"https://codeload.github.com/beyondcode/laravel-debugbar-companion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondcode%2Flaravel-debugbar-companion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281475905,"owners_count":26508132,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"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":[],"created_at":"2024-11-15T02:15:41.800Z","updated_at":"2025-10-28T16:40:00.313Z","avatar_url":"https://github.com/beyondcode.png","language":"Vue","readme":"# Laravel DebugBar Companion\n\nA Laravel DebugBar companion app that helps you debug your applications.\n\n![](https://beyondco.de/github/laravel-debugbar-companion/companion.png)\n\n## Installation\n\nYou can download the latest version of this application for MacOS, Windows, and Linux on the [releases page](https://github.com/beyondcode/laravel-debugbar-companion/releases).\n\nThe new `socket` storage driver is already available in the `master` branch of the Laravel Debugbar. If you don't want to use the master branch, you can already use this app in combination with this custom storage provider:\n\n```php\n\u003c?php\nnamespace App;\n\nuse DebugBar\\Storage\\StorageInterface;\n\nclass SocketStorage implements StorageInterface\n{\n    protected $socket;\n    /**\n     * @inheritDoc\n     */\n    function save($id, $data)\n    {\n        $socketIsFresh = !$this-\u003esocket;\n        if (!$this-\u003esocket = $this-\u003esocket ?: $this-\u003ecreateSocket()) {\n            return false;\n        }\n        $encodedPayload = json_encode([\n            'id' =\u003e $id,\n            'base_path' =\u003e base_path(),\n            'app' =\u003e config('app.name'),\n            'data' =\u003e $data,\n        ]);\n        $encodedPayload = strlen($encodedPayload).'#'.$encodedPayload;\n        set_error_handler([self::class, 'nullErrorHandler']);\n        try {\n            if (-1 !== stream_socket_sendto($this-\u003esocket, $encodedPayload)) {\n                return true;\n            }\n            if (!$socketIsFresh) {\n                stream_socket_shutdown($this-\u003esocket, \\STREAM_SHUT_RDWR);\n                fclose($this-\u003esocket);\n                $this-\u003esocket = $this-\u003ecreateSocket();\n            }\n            if (-1 !== stream_socket_sendto($this-\u003esocket, $encodedPayload)) {\n                return true;\n            }\n        } finally {\n            restore_error_handler();\n        }\n    }\n    private static function nullErrorHandler($t, $m)\n    {\n        // no-op\n    }\n    protected function createSocket()\n    {\n        set_error_handler([self::class, 'nullErrorHandler']);\n        try {\n            return stream_socket_client('tcp://'.config('debugbar.storage.host', '127.0.0.1').':'.config('debugbar.storage.port', 2304));\n        } finally {\n            restore_error_handler();\n        }\n    }\n    /**\n     * @inheritDoc\n     */\n    function get($id)\n    {\n        //\n    }\n    /**\n     * @inheritDoc\n     */\n    function find(array $filters = array(), $max = 20, $offset = 0)\n    {\n        //\n    }\n    /**\n     * @inheritDoc\n     */\n    function clear()\n    {\n        //\n    }\n}\n```\n\nJust place it in you `app` directory and configure the debugbar in your `config/debugbar.php` file like this:\n\n```php\n'storage' =\u003e [\n    'enabled'    =\u003e true,\n    'driver'     =\u003e 'custom', // redis, file, pdo, custom\n    'provider'   =\u003e \\App\\SocketStorage::class, // Instance of StorageInterface for custom driver\n],\n```\n\n### Contributing\n\nTo get the application running locally, first install all required dependencies using `yarn`.\n\nThe application can be started in development mode using:\n\n```\nyarn electron:serve\n```\n\nThis will start the application in a hot-reloading mode, so all changes will be immediately visible within the application.\n\n### Security\n\nIf you discover any security related issues, please email marcel@beyondco.de instead of using the issue tracker.\n\n## Credits\n\n- [Marcel Pociot](https://github.com/mpociot)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondcode%2Flaravel-debugbar-companion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyondcode%2Flaravel-debugbar-companion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondcode%2Flaravel-debugbar-companion/lists"}