{"id":18464798,"url":"https://github.com/krissss/php-log-reader","last_synced_at":"2025-10-15T13:56:13.092Z","repository":{"id":57009248,"uuid":"410508087","full_name":"krissss/php-log-reader","owner":"krissss","description":"Log Reader For PHP","archived":false,"fork":false,"pushed_at":"2025-02-05T07:31:31.000Z","size":69,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-19T22:50:06.740Z","etag":null,"topics":["log-reader","php"],"latest_commit_sha":null,"homepage":"","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/krissss.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,"publiccode":null,"codemeta":null}},"created_at":"2021-09-26T09:29:57.000Z","updated_at":"2025-02-05T07:31:00.000Z","dependencies_parsed_at":"2024-11-06T09:11:17.246Z","dependency_job_id":"3d783b1e-2d7b-48e5-8951-0f3d632b7d6e","html_url":"https://github.com/krissss/php-log-reader","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"9878b63610cd28966e1bd0daafb91c97b7337f3e"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krissss%2Fphp-log-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krissss%2Fphp-log-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krissss%2Fphp-log-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krissss%2Fphp-log-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krissss","download_url":"https://codeload.github.com/krissss/php-log-reader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247804449,"owners_count":20998983,"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":["log-reader","php"],"created_at":"2024-11-06T09:11:07.464Z","updated_at":"2025-10-15T13:56:08.020Z","avatar_url":"https://github.com/krissss.png","language":"PHP","readme":"# Log Reader For PHP\n\n![preview](https://github.com/krissss/php-log-reader/raw/master/preview.png)\n\n# Installation\n\n```bash\ncomposer require kriss/log-reader\n```\n\n# Usage\n\n## Use LogReaderControllerTrait in controller\n\n```php\nuse Kriss\\LogReader\\Traits\\LogReaderControllerTrait;\nuse Kriss\\LogReader\\LogReader;\n\nclass SomeController {\n    use LogReaderControllerTrait;\n    \n    private $logReader;\n    \n    protected function getLogReader(): LogReader\n    {\n        if (!$this-\u003elogReader) {\n            //$runtimePath = __DIR__ . '/../runtime/logs';\n            $this-\u003elogReader = new LogReader($runtimePath, [\n                'enable' =\u003e true,\n                'deleteEnable' =\u003e true,\n                // others\n            ]);\n        }\n        return $this-\u003elogReader;\n    }\n\n    protected function getRequest(): SymfonyRequest\n    {\n        return request()-\u003egetSymfonyRequest();\n    }\n\n    protected function getBaseUrl(): string\n    {\n        return 'some/url-prefix';\n    }\n}\n```\n\n# For Laravel\n\n[see example](./example/laravel)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrissss%2Fphp-log-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrissss%2Fphp-log-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrissss%2Fphp-log-reader/lists"}