{"id":18624558,"url":"https://github.com/zvps/phalconphp-debug-assets","last_synced_at":"2025-06-15T16:39:04.616Z","repository":{"id":57092334,"uuid":"168050942","full_name":"zVPS/phalconphp-debug-assets","owner":"zVPS","description":"Collection of debug assets for local / locked down environments ","archived":false,"fork":false,"pushed_at":"2019-03-11T13:04:54.000Z","size":1457,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-17T07:07:16.246Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zVPS.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-01-28T22:50:07.000Z","updated_at":"2019-03-11T13:04:55.000Z","dependencies_parsed_at":"2022-08-22T21:40:12.499Z","dependency_job_id":null,"html_url":"https://github.com/zVPS/phalconphp-debug-assets","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/zVPS/phalconphp-debug-assets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zVPS%2Fphalconphp-debug-assets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zVPS%2Fphalconphp-debug-assets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zVPS%2Fphalconphp-debug-assets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zVPS%2Fphalconphp-debug-assets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zVPS","download_url":"https://codeload.github.com/zVPS/phalconphp-debug-assets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zVPS%2Fphalconphp-debug-assets/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260010182,"owners_count":22945604,"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":[],"created_at":"2024-11-07T04:29:30.678Z","updated_at":"2025-06-15T16:39:04.591Z","avatar_url":"https://github.com/zVPS.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhalconPHP Debug Assets\n\nThis repository allows developers to pull the debug page assets locally, especially useful for projects:\n\n - requiring a secure environment with no remote assets\n - local development with no internet connection (developing on the move/commuting)\n\n## Installation\n\nExample composer file:\n\n```\n{\n    \"name\": \"vendor/example-project\",\n    \"description\": \"Example Composer File.\",\n    \"authors\": [\n        {\n            \"name\": \"example\",\n            \"email\": \"email@example.com\"\n        }\n    ],\n    \"minimum-stability\": \"dev\",\n    \"config\" : {\n        \"optimize-autoloader\": true,\n        \"sort-packages\": true\n    },\n    \"require\" : {\n        \"php\" : \"\u003e=7.2\",\n        \"ext-phalcon\" : \"^3.4\",\n        \"fabfuel/prophiler\": \"~1.5\",\n        \"phalcon/incubator\": \"3.4.x\"\n    },\n    \"require-dev\": {\n        \"phalcon/devtools\": \"~3.4\",\n        \"phalcon/ide-stubs\": \"*\",\n        \"ralouphie/getallheaders\": \"2.0.5\",\n        \"zvps/phalconphp-debug-assets\": \"4.x-dev\"\n    },\n    \"repositories\": [\n        {\n            \"type\": \"vcs\",\n            \"url\":  \"git@github.com:zVPS/phalconphp-debug-assets.git\"\n        }\n    ],\n    \"scripts\": {\n        \"post-install-cmd\": [\n            \"SlowProg\\\\CopyFile\\\\ScriptHandler::copy\"\n        ],\n        \"post-update-cmd\": [\n            \"SlowProg\\\\CopyFile\\\\ScriptHandler::copy\"\n        ]\n    },\n    \"extra\": {\n        \"copy-file-dev\": {\n            \"vendor/zvps/phalconphp-debug-assets/debug/\": \"public/debug/\"\n        }\n    }\n}\n```\n\nIf your project has a different location for assets / webroot then change `public/debug/` to the correct path relative to the project root.\n\n## Setup\n\nIt would be recommended to only load these files and setup the debug class for development environments. Our front controller looks a bit like this:\n\n```\n    $config = new ConfigIni(APP_DIR . '/config/app.ini');\n    if (!$config instanceof ConfigIni) {\n        throw new \\Exception(\"Config file app.ini missing or unable to be loaded.\");\n    }\n\n    /** start composer autoloader */\n    require_once ( APP_DIR . $config-\u003eapplication-\u003evendorDir . '/autoload.php' );\n\n    ($config-\u003eapplication-\u003edebug) ? (new \\Phalcon\\Debug())-\u003elisten(true, true)-\u003esetUri('/debug/') : false;\n```\n\nOnly setting up the `/debug/` folder for environments set to show exceptions and debug pages.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvps%2Fphalconphp-debug-assets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzvps%2Fphalconphp-debug-assets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzvps%2Fphalconphp-debug-assets/lists"}