{"id":20207082,"url":"https://github.com/koolreport/cakephp-example","last_synced_at":"2025-10-18T22:21:13.872Z","repository":{"id":41944816,"uuid":"242503765","full_name":"koolreport/cakephp-example","owner":"koolreport","description":"How to use KoolReport in CakePHP?","archived":false,"fork":false,"pushed_at":"2023-01-14T05:29:59.000Z","size":353,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T20:49:59.514Z","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":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-23T11:22:20.000Z","updated_at":"2022-03-24T22:28:40.000Z","dependencies_parsed_at":"2023-02-09T18:46:27.706Z","dependency_job_id":null,"html_url":"https://github.com/koolreport/cakephp-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fcakephp-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fcakephp-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fcakephp-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koolreport%2Fcakephp-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koolreport","download_url":"https://codeload.github.com/koolreport/cakephp-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241644543,"owners_count":19996177,"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-14T05:27:24.392Z","updated_at":"2025-10-18T22:21:13.777Z","avatar_url":"https://github.com/koolreport.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to use KoolReport in CakePHP?\n\nCakePHP is one of earliest and greatest MVC framework for PHP. CakePHP has reached version 4.x with great improvement toward modern standard. CakePHP provide clean code, fast speed and large support community.\n\nKoolReport is reporting framework and can be integrated into CakePHP or any other MVC framework.KoolReport help you to create data report faster and easier.\n\nIn this repository, we would like to demonstrate how KoolReport can be used inside CakePHP.\n\n# Guide\n\n## Installation\n\nRun `composer` command to install `koolreport\\core`\n\n```\ncomposer require koolreport\\core\n```\n\n## Step to make reports\n\n1. Inside `src` folder, create `Reports` folder to hold your reports\n2. Create `MyReport.php` and `MyReport.view.php` inside `Reports` folder. Please see the contents of two files in our repository.\n3. Inside `webroot` folder, create folder `koolreport_assets` to hold resources created by KoolReport\n\n### Create controller and view\n\nIn `PagesController`, create `report()` action:\n\n```php\npublic function report()\n{\n    $report = new \\App\\Reports\\MyReport;\n    $report-\u003erun();\n    $this-\u003eset(\"report\",$report);\n    return $this-\u003erender();\n}\n```\n\nConfigure the routes inside `config/routes.php`\n\n```\n$builder-\u003econnect('/report', ['controller' =\u003e 'Pages', 'action' =\u003e 'report']);\n```\n\nAll done!\n\n## View result\n\nNow you can access:\n\n```\nhttp://locahost/cakephp-example/report\n```\n\nyou will see\n\n![](https://www.koolreport.com/assets/images/editor/c4/image5e536edd9864f.png)\n\n\n# Summary\n\nKoolReport is a great php reporting framework. You can use KoolReport alone with pure php or inside any modern MVC frameworks like CakePHP, Laravel, Symfony. If you have any questions regarding KoolReport, free free to contact us at [our forum](https://www.koolreport.com/forum/topics) or email to [support@koolreport.com](mailto:support@koolreport.com).\n\n__Happy Reporting!__","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoolreport%2Fcakephp-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoolreport%2Fcakephp-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoolreport%2Fcakephp-example/lists"}