Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marioblazek/crontab-manager
Crontab Manager library
https://github.com/marioblazek/crontab-manager
Last synced: 3 days ago
JSON representation
Crontab Manager library
- Host: GitHub
- URL: https://github.com/marioblazek/crontab-manager
- Owner: MarioBlazek
- License: gpl-2.0
- Created: 2019-04-24T21:00:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-21T08:39:01.000Z (over 2 years ago)
- Last Synced: 2023-03-01T01:35:42.280Z (over 1 year ago)
- Language: PHP
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Q Alliance / Crontab Manager
### Installation:
```bash
$ composer require q-alliance/crontab-manager
```### Usage:
* create a reader, send username as parameter (use common sense, you cannot set root crontab if you are running this as joeaverage user)
* create a writer and inject the reader
* run update with array of cron jobs to add##### for example:
```php
updateManagedCrontab($cronJobs);
```
* all users current cron jobs will be left intact
* a new `block` of cron jobs will be added to crontab, using the list provided
* 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
* also see [example.php](example.php) in the root folder### Misc & TODO:
* tests
* create a symfony bundle to integrate this with Symfony 4 framework
* CLI command that can be run via composer install to auto-update your crontabs with every new release