{"id":22695659,"url":"https://github.com/tina4stack/tina4php-debug","last_synced_at":"2025-04-13T03:22:55.751Z","repository":{"id":57070023,"uuid":"379722007","full_name":"tina4stack/tina4php-debug","owner":"tina4stack","description":"A generic debugging module which can enhance your normal PHP project","archived":false,"fork":false,"pushed_at":"2024-07-13T14:24:19.000Z","size":741,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-28T04:10:41.909Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tina4stack.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}},"created_at":"2021-06-23T20:29:16.000Z","updated_at":"2024-07-13T14:23:36.000Z","dependencies_parsed_at":"2024-03-20T08:45:47.443Z","dependency_job_id":null,"html_url":"https://github.com/tina4stack/tina4php-debug","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.04761904761904767,"last_synced_commit":"ffcb7ba98d5f6c4c030aa16c17e8a7de15c32236"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tina4stack%2Ftina4php-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tina4stack%2Ftina4php-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tina4stack%2Ftina4php-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tina4stack%2Ftina4php-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tina4stack","download_url":"https://codeload.github.com/tina4stack/tina4php-debug/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229001739,"owners_count":18004459,"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-12-10T04:11:24.933Z","updated_at":"2024-12-10T04:11:25.402Z","avatar_url":"https://github.com/tina4stack.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Readme\n## Tina4 Php Debug\n\nA generic debugging module which can enhance your normal PHP project\n\n### Install the module using composer\n\n```\ncomposer require tina4stack/tina4php-debug\n```\n\n### Some examples of what to expect\n\nNormal error handling looks like this\n\n![](.README_images/0021cfaf.png)\n\nTina4 debug exception handling and errors will be published to the screen automatically for you.\n\n![](.README_images/1168b9b3.png)\n\nYou also get some nice console output\n\n![](.README_images/9ac99dae.png)\n\n### Setting this up in your project\n\nIn your code you need to set some constants to get this working.\n```php index.php\n\u003c?php\nconst TINA4_DOCUMENT_ROOT = __DIR__;\nconst TINA4_DEBUG = true;\nrequire_once \"vendor/autoload.php\";\n\n//Set the log level of what you want reported to console\n//Can be an array of the values as listed below\n\n\\Tina4\\Debug::$logLevel = [TINA4_LOG_DEBUG, TINA4_LOG_INFO];\n\n//You can code here as per normal\n\n//If you want to output console messages use code like this\n\n\\Tina4\\Debug::message(\"Testing\", TINA4_LOG_DEBUG);\n\\Tina4\\Debug::message(\"Testing\", TINA4_LOG_WARNING);\n\\Tina4\\Debug::message(\"Testing\", TINA4_LOG_ERROR);\n\\Tina4\\Debug::message(\"Testing\", TINA4_LOG_INFO);\n\\Tina4\\Debug::message(\"Testing\", TINA4_LOG_CRITICAL);\n\n//Render the debug\necho \\Tina4\\DebugRender::render();\n\n```\n\n### Log Levels\n\n```\nconst TINA4_LOG_EMERGENCY = \"emergency\";\nconst TINA4_LOG_ALERT = \"alert\";\nconst TINA4_LOG_CRITICAL = \"critical\";\nconst TINA4_LOG_ERROR = \"error\";\nconst TINA4_LOG_WARNING = \"warning\";\nconst TINA4_LOG_NOTICE = \"notice\";\nconst TINA4_LOG_INFO = \"info\";\nconst TINA4_LOG_DEBUG = \"debug\";\nconst TINA4_LOG_ALL = \"all\";\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftina4stack%2Ftina4php-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftina4stack%2Ftina4php-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftina4stack%2Ftina4php-debug/lists"}