{"id":16083854,"url":"https://github.com/inquid/yii2-google-debugger","last_synced_at":"2026-05-01T09:31:15.386Z","repository":{"id":56991934,"uuid":"122215068","full_name":"inquid/yii2-google-debugger","owner":"inquid","description":"Use Google Cloud Logger into your Yii projects","archived":false,"fork":false,"pushed_at":"2021-06-04T01:42:04.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T16:46:12.985Z","etag":null,"topics":["google-cloud","yii2","yii2-extension"],"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/inquid.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}},"created_at":"2018-02-20T15:16:28.000Z","updated_at":"2021-06-04T01:40:33.000Z","dependencies_parsed_at":"2022-08-21T12:20:50.181Z","dependency_job_id":null,"html_url":"https://github.com/inquid/yii2-google-debugger","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/inquid/yii2-google-debugger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inquid%2Fyii2-google-debugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inquid%2Fyii2-google-debugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inquid%2Fyii2-google-debugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inquid%2Fyii2-google-debugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inquid","download_url":"https://codeload.github.com/inquid/yii2-google-debugger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inquid%2Fyii2-google-debugger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["google-cloud","yii2","yii2-extension"],"created_at":"2024-10-09T12:07:16.641Z","updated_at":"2026-05-01T09:31:15.370Z","avatar_url":"https://github.com/inquid.png","language":"PHP","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=contact@inquid.co\u0026item_name=Yii2+extensions+support\u0026item_number=22+Campaign\u0026amount=5%2e00\u0026currency_code=USD"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"http://www.yiiframework.com/\" target=\"_blank\"\u003e\n        \u003cimg src=\"http://static.yiiframework.com/files/logo/yii.png\" width=\"400\" alt=\"Yii Framework\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=contact@inquid.co\u0026item_name=Yii2+extensions+support\u0026item_number=22+Campaign\u0026amount=5%2e00\u0026currency_code=USD)\n\nGoogle Debugger for Yii\n=======================\nUse Google Cloud Logger into your Yii projects\n\nInstallation\n------------\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```\nphp composer.phar require --prefer-dist inquid/yii2-google-debugger \"*\"\n```\n\nor add\n\n```\n\"inquid/yii2-google-debugger\": \"*\"\n```\n\nto the require section of your `composer.json` file.\n\n\nUsage\n-----\n\nOnce the extension is installed, simply generate a service account with Cloud Debugger Agent permissions and configure your target as the following:\n\n```php\n        'log' =\u003e [\n            'traceLevel' =\u003e YII_DEBUG ? 3 : 0,\n            'targets' =\u003e [\n                'googleCloud' =\u003e [\n                    'class' =\u003e 'inquid\\google_debugger\\GoogleCloudLogger',\n                    'categories' =\u003e ['cat1','cat2'], //Your categories to log\n                    'levels' =\u003e ['info', 'trace', 'warning', 'error'],\n                    'except' =\u003e ['yii\\web\\HttpException:*', 'yii\\i18n\\I18N\\*'],\n                    'prefix' =\u003e function () {\n                        $url = !Yii::$app-\u003erequest-\u003eisConsoleRequest ? Yii::$app-\u003erequest-\u003egetUrl() : null;\n                        return sprintf('[%s][%s]', Yii::$app-\u003eid, $url);\n                    },\n                    'projectId' =\u003e 'project-id',\n                    'loggerInstance' =\u003e 'instance-log',\n                    'clientSecretPath' =\u003e '../google_credentials.json' //path to your service account credentials\n                ]\n            ],\n        ],\n```\n\nAnd thats it! log as you may log using Yii\n```php\nYii::debug('start calculating average revenue',GoogleCloudLogger::CATEGORY);\nYii::warning('Warning');\nYii::info('Info');\nYii::error('Error');\n```\n\nAnd check them in https://console.cloud.google.com/logs/viewer?project=your_project_id\n\nSUPPORT\n-----\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=contact@inquid.co\u0026item_name=Yii2+extensions+support\u0026item_number=22+Campaign\u0026amount=5%2e00\u0026currency_code=USD)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finquid%2Fyii2-google-debugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finquid%2Fyii2-google-debugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finquid%2Fyii2-google-debugger/lists"}