PHPackages                             auguzsto/cronjob - 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. auguzsto/cronjob

ActiveLibrary

auguzsto/cronjob
================

(PHP Cron) Asynchronous task scheduler without the need for extensions.

0.0.6(6mo ago)033MITPHPCI passing

Since Oct 17Pushed 6mo agoCompare

[ Source](https://github.com/auguzsto/cronjob)[ Packagist](https://packagist.org/packages/auguzsto/cronjob)[ RSS](/packages/auguzsto-cronjob/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

About
-----

[](#about)

(PHP Cron) Asynchronous task scheduler without the need for extensions. Written in PHP for PHP.

Setting up
----------

[](#setting-up)

Install package

```
composer require auguzsto/cronjob

```

Create the folder for the tasks, preferably at the root of your project.

```
mkdir tasks

```

Next step is to set the CRONJOB\_TASKS\_DIR environment variable with the absolute path of the task path.

```
CRONJOB_TASKS_DIR=/example/app/tasks

```

Creating task
-------------

[](#creating-task)

```
vendor/bin/cronjob create ExampleTask

```

This command will create a class in your tasks folder with a skeleton already in place.

```
