{"id":36980804,"url":"https://github.com/touchdesign/logrotate","last_synced_at":"2026-01-13T22:50:34.563Z","repository":{"id":55392770,"uuid":"304382938","full_name":"touchdesign/logrotate","owner":"touchdesign","description":"Rotate log files.","archived":false,"fork":false,"pushed_at":"2021-01-08T17:19:55.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-12-21T00:35:08.012Z","etag":null,"topics":["archive","filesystem","linux-like","log","logrotate","php","unix-like"],"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/touchdesign.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-15T16:17:19.000Z","updated_at":"2021-01-08T17:19:58.000Z","dependencies_parsed_at":"2022-08-14T23:11:06.828Z","dependency_job_id":null,"html_url":"https://github.com/touchdesign/logrotate","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/touchdesign/logrotate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchdesign%2Flogrotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchdesign%2Flogrotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchdesign%2Flogrotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchdesign%2Flogrotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/touchdesign","download_url":"https://codeload.github.com/touchdesign/logrotate/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/touchdesign%2Flogrotate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: 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":["archive","filesystem","linux-like","log","logrotate","php","unix-like"],"created_at":"2026-01-13T22:50:34.479Z","updated_at":"2026-01-13T22:50:34.556Z","avatar_url":"https://github.com/touchdesign.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.4-8892BF.svg)](https://php.net/)\n\n# Logrotate\n\nLinux like log rotate component written in PHP. For example, if you have a \nsimple `logfile.log` you can rotate (move) it to `logfile.log.1` and so on. \nThe source logfile will be truncated. The number of logfiles to keep can \ncontrolled with the `$keep` option.\n\n## Dependencies\n\n * PHP 7.4 or higher\n\n## Install\n\n```shell\ncomposer require touchdesign/logrotate\n```\n\n## Usage\n\n```php\n$rotate = new RotateWorker(\n    (new LogfileLoader('/tmp/logfile.log'))\n);\n\n// Note: Keep 3 logfiles archived\n$rotate-\u003erun(3);\n\n$purge = new PurgeWorker(\n    (new LogfileLoader('/tmp/logfile.log'))\n);\n\n$purge-\u003erun();\n```\n\nFor more examples take a look at the example folder in this repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouchdesign%2Flogrotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftouchdesign%2Flogrotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftouchdesign%2Flogrotate/lists"}