PHPackages                             qtsd/slack-cron - 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. qtsd/slack-cron

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

qtsd/slack-cron
===============

Execute a command and send errors or output to slack (usefull for cron jobs).

2222PHP

Since May 31Pushed 8y ago2 watchersCompare

[ Source](https://github.com/qtsd/slack-cron)[ Packagist](https://packagist.org/packages/qtsd/slack-cron)[ RSS](/packages/qtsd-slack-cron/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Introduction
------------

[](#introduction)

A simple tool writen in PHP using some symfony components.
Used to execute a command and send errors or output to slack using [Incoming Webhooks](https://api.slack.com/incoming-webhooksincoming) (usefull for cron jobs).

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

[](#requirements)

- PHP 5.6 and up.
- cURL accessible from path.
- composer to install dependencies.

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

[](#installation)

Via composer

```
$ composer create-project qtsd/slack-cron slack-cron dev-master --keep-vcs
```

From sources

```
$ git clone git@github.com:qtsd/slack-cron.git
$ composer install -d slack-cron
```

Configuration
-------------

[](#configuration)

**Path**
You can link the app to the path to use it from everywhere.
The symlink should conventionally be on */usr/local/bin*, but cron path do not include it, so use */usr/bin instead*.

```
$ sudo ln -s `pwd`/slack-cron/bin/console /usr/bin/slack-cron
```

**Slack**
Slack webhook url is asked on *composer install*, and will be kept in *conf/parameters.yml*.
To get a webhook url, go on Slack &gt; [Getting started with custom integrations](https://api.slack.com/custom-integrations) &gt; New webhook.

Documentation
-------------

[](#documentation)

**Usage**
run \[options\] &lt;exec&gt; \[&lt;path&gt;\]

**Arguments**

- **exec** *The command to execute.*
- **path** *The working directory.*

**Options**

- **--timeout\[=TIMEOUT\]** *Command timeout in seconds \[default: 120\]*
- **--output-all** *Send all output to slack (not just errors)*

Examples
--------

[](#examples)

Call from path

```
$ slack-cron run [...]
```

Call from install directory

```
$ bin/console run [...]
```

List files of the current directory, and send output to slack

```
$ slack-cron run 'ls -al' --output-all
```

Try to create a file /foo.txt, and send output to slack if encounter an error

```
$ slack-cron run 'touch foo' /
```

License
-------

[](#license)

Licensed under the MIT license:

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ff750392d7c508be88e57e3eee3812abe5fd28136b6aaaf0b62ac5a6fbdd406?d=identicon)[qtsd](/maintainers/qtsd)

---

Top Contributors

[![qtsd](https://avatars.githubusercontent.com/u/10633476?v=4)](https://github.com/qtsd "qtsd (5 commits)")

### Embed Badge

![Health badge](/badges/qtsd-slack-cron/health.svg)

```
[![Health](https://phpackages.com/badges/qtsd-slack-cron/health.svg)](https://phpackages.com/packages/qtsd-slack-cron)
```

PHPackages © 2026

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