PHPackages                             bentools/crontab-bundle - 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. bentools/crontab-bundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

bentools/crontab-bundle
=======================

Generates a crontab based on the app directory.

0.2.1(5y ago)22.6k1MITPHPPHP &gt;=7.1

Since Sep 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bpolaszek/crontab-bundle)[ Packagist](https://packagist.org/packages/bentools/crontab-bundle)[ RSS](/packages/bentools-crontab-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (8)Versions (5)Used By (0)

Crontab Bundle [![CI Workflow](https://github.com/bpolaszek/crontab-bundle/workflows/CI%20Workflow/badge.svg)](https://github.com/bpolaszek/crontab-bundle/workflows/CI%20Workflow/badge.svg)
=============================================================================================================================================================================================

[](#crontab-bundle-)

An easy way to generate a crontab based on the application path.

Unlike similar Symfony bundles, this one does not provide a worker, it *actually* replaces the user's crontab.

⚠️ Do not use this if your user's crontab may by altered by another process!

Important

This repository is no longer maintained and may be removed in a near future. You may consider creating a fork if you still require it.

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

[](#installation)

This bundle is compatible with Symfony 4/5+. Use `0.1.*` tag for earlier versions compatibility.

```
composer require bentools/crontab-bundle 0.2.*
```

With Symfony Flex, you're already done!

### Usage

[](#usage)

Create a sample crontab in `config/crontab.dist`:

```
# config/crontab.dist

0 0 * * * php {%kernel.project_dir%}/bin/console your:favorite:command
```

As you can see, `{%kernel.project_dir%}` is a container parameter. It will be replaced at runtime with its current value. You can use any container parameter wrapped with curly braces.

### Preview

[](#preview)

This will give you a preview of your crontab:

```
php bin/console crontab:update --dry-run --dump
```

### Apply

[](#apply)

To apply your crontab, run this:

```
php bin/console crontab:update
```

Now if you execute `crontab -l` in your shell you should see something like this:

```
0 0 * * * php /home/me/my-project/bin/console your:favorite:command
```

FAQ
---

[](#faq)

#### Can I use any container parameter?

[](#can-i-use-any-container-parameter)

Yes.

#### I don't want the dist file to be `config/crontab.dist`. Can I change that?

[](#i-dont-want-the-dist-file-to-be-configcrontabdist-can-i-change-that)

Sure: create a `config/packages/bentools_crontab.yaml` and change the `dist_file` parameter:

```
bentools_crontab:
    dist_file: '%env(CRONTAB_SAMPLE_FILE)%' # That's an example.
```

#### What are the command options?

[](#what-are-the-command-options)

```
--no-interaction # Skip confirmation question
--dry-run # Do not update crontab for real
--output-file=/path/to/generated_crontab # Change output file (which is a tmp file by default)
--dump # Show generated crontab content
```

#### I already have a crontab for the user running my app. Will it replace it?

[](#i-already-have-a-crontab-for-the-user-running-my-app-will-it-replace-it)

Yes. Use this bundle only if you consider it to be the only crontab entry point.

Tests
-----

[](#tests)

```
./vendor/bin/pest
```

License
-------

[](#license)

MIT

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~267 days

Total

4

Last Release

2034d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/acdd1a8ee0e657ddd06cf11f98a32100ef7121afb8aa270a5b295f5c29c038b3?d=identicon)[bpolaszek](/maintainers/bpolaszek)

---

Top Contributors

[![bpolaszek](https://avatars.githubusercontent.com/u/5569077?v=4)](https://github.com/bpolaszek "bpolaszek (7 commits)")[![misaert](https://avatars.githubusercontent.com/u/12974251?v=4)](https://github.com/misaert "misaert (2 commits)")

---

Tags

crontabcrontab-bundlesymfonysymfony-bundle

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/bentools-crontab-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bentools-crontab-bundle/health.svg)](https://phpackages.com/packages/bentools-crontab-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[kimai/kimai

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M528](/packages/shopware-core)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9417.2k58](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
