{"id":20121252,"url":"https://github.com/grohiro/php-crontab","last_synced_at":"2026-05-11T11:34:44.348Z","repository":{"id":75358510,"uuid":"101385850","full_name":"grohiro/php-crontab","owner":"grohiro","description":"php-crontab manipulates crontab via PHP","archived":false,"fork":false,"pushed_at":"2017-09-04T05:59:17.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T01:48:25.800Z","etag":null,"topics":[],"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/grohiro.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":"2017-08-25T08:56:21.000Z","updated_at":"2017-08-25T08:58:49.000Z","dependencies_parsed_at":"2023-03-21T04:51:13.199Z","dependency_job_id":null,"html_url":"https://github.com/grohiro/php-crontab","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grohiro%2Fphp-crontab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grohiro%2Fphp-crontab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grohiro%2Fphp-crontab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grohiro%2Fphp-crontab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grohiro","download_url":"https://codeload.github.com/grohiro/php-crontab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241564881,"owners_count":19983025,"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-13T19:27:00.575Z","updated_at":"2026-05-11T11:34:44.310Z","avatar_url":"https://github.com/grohiro.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-crontab\n\nphp-crontab manipulates crontab entry via PHP. You can use this library to add and update, save crontab entries.\n\n## Install\n\n### Composer\ncomposer.json\n\n```json\n{\n  \"repositories\": [\n    {\n      \"type\": \"vcs\",\n      \"url\": \"https://github.com/grohiro/php-crontab\"\n    }\n  ],\n  \"require\": {\n    \"grohiro/php-crontab\": \"~1.0\"\n  }\n}\n```\n\n## Usage\n\n```php\nuse Grohiro\\Crontab\\Crontab;\n\n$crontab = new Crontab();\n// Read crontab\n$crontab-\u003einit(Crontab::l());\n\n// Add entries\n$crontab-\u003eaddNewEntry('ID1', '0 4 * * * ls -l /var/log');\n$crontab-\u003eaddNewEntry('ID2', '0 5 * * * ls -l /var/spool/mail');\n\n// Change schedule\n$crontab-\u003eupdateEntry('ID1', '30 4 * * * ls -l /var/log');\n\n// Export crontab\n$crontab-\u003esave();\n```\n\ncrontab\n\n```\n30 4 * * * ls -l /var/log #phpcrontab:ID1\n0 5 * * * ls -l /var/spool/mail #phpcrontab:ID2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrohiro%2Fphp-crontab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrohiro%2Fphp-crontab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrohiro%2Fphp-crontab/lists"}