{"id":19973997,"url":"https://github.com/marioblazek/crontab-manager","last_synced_at":"2026-05-13T17:32:06.002Z","repository":{"id":43063639,"uuid":"183306194","full_name":"MarioBlazek/crontab-manager","owner":"MarioBlazek","description":"Crontab Manager library","archived":false,"fork":false,"pushed_at":"2022-03-21T08:39:01.000Z","size":56,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T09:32:09.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarioBlazek.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-04-24T21:00:59.000Z","updated_at":"2021-10-11T14:34:31.000Z","dependencies_parsed_at":"2022-09-10T00:21:44.790Z","dependency_job_id":null,"html_url":"https://github.com/MarioBlazek/crontab-manager","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioBlazek%2Fcrontab-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioBlazek%2Fcrontab-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioBlazek%2Fcrontab-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioBlazek%2Fcrontab-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarioBlazek","download_url":"https://codeload.github.com/MarioBlazek/crontab-manager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241406596,"owners_count":19958013,"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-13T03:13:33.644Z","updated_at":"2026-05-13T17:32:05.965Z","avatar_url":"https://github.com/MarioBlazek.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Q Alliance / Crontab Manager\n\n### Installation:\n```bash\n$ composer require q-alliance/crontab-manager\n```\n\n### Usage:\n* create a reader, send username as parameter (use common sense, you cannot set root crontab if you are running this as joeaverage user)\n* create a writer and inject the reader \n* run update with array of cron jobs to add\n\n##### for example:\n\n```php\n\u003c?php\n\nuse QAlliance\\CrontabManager\\Factory;\n\n$listOfCronjobs = [\n    '3 */4 * * * /home/test/dev/bittrex-logger/bin/console bittrex:fetch --verbose',\n    '9 */12 * * 0 /home/test/keke/vendor/bin/foobar run --die',\n    '11 1 * * 1 /usr/bin/php /var/www/sample.q-software.com/bin/console app:timerweekteamwork',\n];\n\n$writer = Factory::createWriter('www-data');\n$writer-\u003eupdateManagedCrontab($cronJobs);\n```\n* all users current cron jobs will be left intact\n* a new `block` of cron jobs will be added to crontab, using the list provided\n* this block is managed by this library - if you add or remove jobs from the array, they will be updated when you run the updateMangedCrontab method\n* also see [example.php](example.php) in the root folder\n\n### Misc \u0026 TODO:\n* tests\n* create a symfony bundle to integrate this with Symfony 4 framework\n* CLI command that can be run via composer install to auto-update your crontabs with every new release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarioblazek%2Fcrontab-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarioblazek%2Fcrontab-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarioblazek%2Fcrontab-manager/lists"}