{"id":20207080,"url":"https://github.com/koolreport/yii2-example","last_synced_at":"2026-03-06T00:31:51.898Z","repository":{"id":136453008,"uuid":"234277595","full_name":"koolreport/yii2-example","owner":"koolreport","description":"How to use KoolReport in Yii2?","archived":false,"fork":false,"pushed_at":"2023-01-31T02:37:26.000Z","size":95,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T12:55:06.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.koolreport.com/","language":"PHP","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/koolreport.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-01-16T09:01:22.000Z","updated_at":"2024-12-05T12:21:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6c06603-8017-4041-bf2a-7f998162517f","html_url":"https://github.com/koolreport/yii2-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/koolreport/yii2-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fyii2-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fyii2-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fyii2-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fyii2-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koolreport","download_url":"https://codeload.github.com/koolreport/yii2-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fyii2-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30156285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-14T05:27:23.938Z","updated_at":"2026-03-06T00:31:51.882Z","avatar_url":"https://github.com/koolreport.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.koolreport.com\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://avatars0.githubusercontent.com/u/993323\" height=\"100px\"\u003e\n        \u003cimg src=\"https://cdn.koolreport.com/assets/images/bar.png\" height=\"100px\"\u003e\n    \u003c/a\u003e\n    \u003ch1 align=\"center\"\u003eHow to use KoolReport in Yii2?\u003c/h1\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\n# KOOLREPORT\n\nKoolReport is an intuitive and flexible Open Source PHP Reporting Framework for faster and easier data report delivery.\n\nKoolReport can work with any MVC Frameworks such as Laravel, CodeIgniter or Yii2 to provide reporting capability.\n\n# GUIDE\n\n### Step 1: Install KoolReport\n\n```\ncomposer require koolreport/core\n```\n\n### Step 2: Create reports folder\n\nCreate `reports` folder in the root folder to hold reports. You may find our `MyReport` sample report within `reports` folder. The MyReport contains class file `MyReport.php` and view file `MyReport.view.php`\n\n### Step 3: Create action inside controller:\n\n```\n    ...\n    public function actionReport()\n    {\n        $report = new \\app\\reports\\MyReport;\n        $report-\u003erun();\n        return $this-\u003erender('report',array(\n            \"report\"=\u003e$report\n        ));\n        \n    }\n```\n\nIn the action of Yii2, we create report object, run it and then pass the report object to the view.\n\nYou may find the `report.php` view with following content:\n\n```\n\u003c?php $report-\u003erender();?\u003e\n```\n\n### Step 3: Call the action from browser:\n\n```\nhttp://localhost/yii2-example/web/index.php?r=site%2report\n```\n\n# Result\n\n![](https://www.koolreport.com/assets/images/editor/c4/image5e202dbd87512.png)\n\n__Happy Reporting!__","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoolreport%2Fyii2-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoolreport%2Fyii2-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoolreport%2Fyii2-example/lists"}