PHPackages                             mediovski-technology/php-crontab-manager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mediovski-technology/php-crontab-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

mediovski-technology/php-crontab-manager
========================================

0.10.0(5y ago)01.6k1PHP

Since Mar 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/stunmike/php-crontab-manager)[ Packagist](https://packagist.org/packages/mediovski-technology/php-crontab-manager)[ RSS](/packages/mediovski-technology-php-crontab-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP Crontab Manager
===================

[](#php-crontab-manager)

Last build status: [![Build Status](https://camo.githubusercontent.com/b3656c63e1c538af10b810b0663ecb07abc0c97b057b37891a016058cc45a6df/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4d6564696f76736b69546563686e6f6c6f67792f7068702d63726f6e7461622d6d616e616765722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/MediovskiTechnology/php-crontab-manager)

Manages linux crontab file by adding and deleting the appropriate entries. It is able to track the source file so that after the changes to this file, he will be able to enter and update the user's crontab file in safe way (doesn't remove entries added by user using `crontab -e`).

Installation
------------

[](#installation)

- copy files to your project
- include files from src directory or use some autoloader
- use it as described below

Requirements
------------

[](#requirements)

If you are willing to use this tool as other user be sure enable appropriate entry into end of sudoers file (`visudo`) for ex.:

```
%developers ALL=(www-data)NOPASSWD:/usr/bin/crontab

```

Above means that users in a group `developers` can run program `crontab` as user `www-data` without need to enter the password.

Usage
-----

[](#usage)

Here is a simple example of use. Adding a simple task to crontab:

```
