{"id":23107033,"url":"https://github.com/malekim/halt","last_synced_at":"2025-04-03T22:42:34.388Z","repository":{"id":62523095,"uuid":"193785511","full_name":"malekim/halt","owner":"malekim","description":"Plugin that extend DebugKit with HaltPanel to help debugging CakePHP3 applications","archived":false,"fork":false,"pushed_at":"2019-06-26T20:28:13.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-09T10:30:59.066Z","etag":null,"topics":["cakephp","cakephp-plugin","debug","debugbar","debugging","debugging-tools","debugkit","php"],"latest_commit_sha":null,"homepage":null,"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/malekim.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":"2019-06-25T21:25:54.000Z","updated_at":"2019-06-26T23:02:26.000Z","dependencies_parsed_at":"2022-11-02T10:31:23.735Z","dependency_job_id":null,"html_url":"https://github.com/malekim/halt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malekim%2Fhalt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malekim%2Fhalt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malekim%2Fhalt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malekim%2Fhalt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malekim","download_url":"https://codeload.github.com/malekim/halt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247092374,"owners_count":20882217,"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":["cakephp","cakephp-plugin","debug","debugbar","debugging","debugging-tools","debugkit","php"],"created_at":"2024-12-17T01:12:08.319Z","updated_at":"2025-04-03T22:42:34.365Z","avatar_url":"https://github.com/malekim.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Halt plugin for CakePHP\n\n## Installation\n\nYou can install this plugin into your CakePHP application using [composer](https://getcomposer.org).\n\nThe recommended way to install composer packages is:\n\n```\ncomposer require malekim/halt\n```\n\nIt is also required to have Debug Kit installed.\n\nThen register the plugin in src/Application.php:\n```\n$this-\u003eaddPlugin(\\Halt\\Plugin::class);\nConfigure::write('DebugKit.panels', ['Halt.Halt']);\n```\n\nRecommended way is to add those lines between debug condition and then DebugKit load should be similar to:\n```\nif (Configure::read('debug')) {\n    $this-\u003eaddPlugin(\\Halt\\Plugin::class);\n    Configure::write('DebugKit.panels', ['Halt.Halt']);\n    $this-\u003eaddPlugin(\\DebugKit\\Plugin::class);\n}\n```\n\n\n## Usage\n\nThe plugin adds new panel to DebugKit Toolbar. You can see all your halts in that panel.\n\nTo halt simple use function:\n```\nhalt($variable);\n```\n\nInside halt you can see line number, file and content of halted variable.\n\nFor instance:\n```\n// inside PagesController.php\npublic function display(...$path) {\n    halt($path);\n    // rest of the code\n}\n```\nAnd then halt shows:\n```\nArray\n(\n    [line] =\u003e 43\n    [file] =\u003e /Users/malekim/Projects/halttest/src/Controller/PagesController.php\n    [var] =\u003e Array\n        (\n            [0] =\u003e home\n        )\n\n)\n```\n\nHalt can be used to any type of variable and any sort of data.\n\nIt is important to note that halt() does not terminate script execution, so you can use any nuber of halt() during request. So it is helpful solution if you need to debug complicated things.  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekim%2Fhalt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalekim%2Fhalt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekim%2Fhalt/lists"}