{"id":21868312,"url":"https://github.com/pmvc-plugin/dev","last_synced_at":"2026-04-30T02:34:32.684Z","repository":{"id":47897482,"uuid":"63425150","full_name":"pmvc-plugin/dev","owner":"pmvc-plugin","description":"PMVC for develop information","archived":false,"fork":false,"pushed_at":"2023-02-23T16:36:29.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T08:30:47.475Z","etag":null,"topics":["pmvc-debug"],"latest_commit_sha":null,"homepage":"","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/pmvc-plugin.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,"publiccode":null,"codemeta":null}},"created_at":"2016-07-15T13:47:05.000Z","updated_at":"2021-11-23T20:12:55.000Z","dependencies_parsed_at":"2025-03-21T21:42:18.284Z","dependency_job_id":"ab106129-8673-4e11-a06c-2f60e95b8cbf","html_url":"https://github.com/pmvc-plugin/dev","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/pmvc-plugin/dev","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmvc-plugin%2Fdev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmvc-plugin%2Fdev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmvc-plugin%2Fdev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmvc-plugin%2Fdev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmvc-plugin","download_url":"https://codeload.github.com/pmvc-plugin/dev/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmvc-plugin%2Fdev/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32452739,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["pmvc-debug"],"created_at":"2024-11-28T05:12:34.487Z","updated_at":"2026-04-30T02:34:32.669Z","avatar_url":"https://github.com/pmvc-plugin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/pmvc-plugin/dev/v/stable)](https://packagist.org/packages/pmvc-plugin/dev) \n[![Latest Unstable Version](https://poser.pugx.org/pmvc-plugin/dev/v/unstable)](https://packagist.org/packages/pmvc-plugin/dev) \n[![CircleCI](https://circleci.com/gh/pmvc-plugin/dev/tree/main.svg?style=svg)](https://circleci.com/gh/pmvc-plugin/dev/tree/main)\n[![License](https://poser.pugx.org/pmvc-plugin/dev/license)](https://packagist.org/packages/pmvc-plugin/dev)\n[![Total Downloads](https://poser.pugx.org/pmvc-plugin/dev/downloads)](https://packagist.org/packages/pmvc-plugin/dev) \n\ndev\n===============\n\n## How to set debug level\n* https://github.com/pmvc-plugin/debug#how-to-trigger-debug\n\n## Best plug order\n   * put dev before debug, you could get most of plug trace\n```\n\\PMVC\\Load::plug([\n    'controller'=\u003enull\n    ,'dispatcher'=\u003enull\n\n    /*dev*/\n    ,'error'=\u003e['all']\n    ,'dev'=\u003enull\n    ,'debug'=\u003enull\n]);\n```\n\n## Unit test tip\n```\n        \\PMVC\\plug('debug',[\n            'output'=\u003e '*Output Plugin*'\n        ])-\u003esetLevel('*Test Level*', true);\n        \\PMVC\\plug('dev')-\u003eonResetDebugLevel();\n```\n\n### phpunit\n* https://github.com/pmvc-plugin/dev/blob/main/tests/DevWithPhpUnitTest.php\n\n### debug with cli\n```php\n\\PMVC\\plug('dev')-\u003edebug_with_cli();\n```\n\n* display debug only (without trace)\n```php\n\\PMVC\\plug('dev')-\u003edebug_with_cli('debug');\n```\n\n* accept multiple dump level\n```php\n\\PMVC\\plug('dev')-\u003edebug_with_cli('debug, trace, help');\n```\n\n\n## Why help also trigger dump\n* https://github.com/pmvc-plugin/dev/blob/main/dev.php#L45\n\n## Install with Composer\n\u003cdetails\u003e\u003csummary\u003eCLICK TO SEE\u003c/summary\u003e\u003cp\u003e\n### 1. Download composer\n   * mkdir test_folder\n   * curl -sS https://getcomposer.org/installer | php\n\n### 2. Install by composer.json or use command-line directly\n#### 2.1 Install by composer.json\n   * vim composer.json\n```\n{\n    \"require\": {\n        \"pmvc-plugin/dev\": \"dev-master\"\n    }\n}\n```\n   * php composer.phar install\n\n#### 2.2 Or use composer command-line\n   * php composer.phar require pmvc-plugin/dev\n\n   or\n   \n   * composer require pmvc-plugin/dev\n\u003c/p\u003e\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmvc-plugin%2Fdev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmvc-plugin%2Fdev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmvc-plugin%2Fdev/lists"}