PHPackages                             plateau/automaton - 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. plateau/automaton

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

plateau/automaton
=================

Task Scheduler for Laravel 4.x

v0.3(12y ago)10315MITPHPPHP &gt;=5.3.0

Since Feb 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/plateau-creations/automaton)[ Packagist](https://packagist.org/packages/plateau/automaton)[ RSS](/packages/plateau-automaton/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Laravel 4 Automaton Task Scheduler
==================================

[](#laravel-4-automaton-task-scheduler)

[![Latest Stable Version](https://camo.githubusercontent.com/12bc996908732ceacca0943bf40b4591ddb7c8f001f357160bd56e6a989bddf9/68747470733a2f2f706f7365722e707567782e6f72672f706c61746561752f6175746f6d61746f6e2f762f737461626c652e706e67)](https://packagist.org/packages/plateau/automaton) [![Total Downloads](https://camo.githubusercontent.com/26068a9e5c129fc1d56873aea1b992d7c4e2c72cbcb8b41b1cf3d7e29b643c9b/68747470733a2f2f706f7365722e707567782e6f72672f706c61746561752f6175746f6d61746f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/plateau/automaton) [![License](https://camo.githubusercontent.com/32f7513c90fcab88d8ce99d72c28e64b45dfc5e67f7424d1f015cc9dc5ced380/68747470733a2f2f706f7365722e707567782e6f72672f706c61746561752f6175746f6d61746f6e2f6c6963656e73652e706e67)](https://packagist.org/packages/plateau/automaton)

Automaton is a task Scheduler for Laravel 4 designed to run as a CronJob. It's designed to run resource intensive tasks with PHP CLI while providing a user friendly way to track down the execution of the tasks.

The planned tasks are stored in a database table, and are 'sandboxed' so any exception occuring will be logged into the database for easier debugging.

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

[](#installation)

Add this into `require-dev` in your `composer.json` file:

```
"require-dev" : {
	...
	"plateau/automaton": "dev-master"
}

```

Run an update:

```
php composer.phar update

```

Register the console service provider in `app/config/app.php`:

```
'providers' => array(
	...
	'Plateau\Automaton\AutomatonServiceProvider',
);
```

Register the facade :

```
	'Automaton' => 'Plateau\Automaton\AutomatonFacade',
);
```

Run migrations

```
php artisan migrate --package=plateau/automaton

```

Usage
-----

[](#usage)

Configure your crontab to run Automaton at a regular interval :

```
* * * * * php /var/www/laravel-app/artisan automaton:run >/dev/null 2>&1

```

Create a task class that contains your logic :

```
use Plateau\Automaton\AbstractTask;

class MyTask extends AbstractTask {

	public function fire()
	{
		// Task logic
	}
}

```

Schedule your task :

```
// Parameters are accessible from the task object as $this->parameters
$parameters = array('key' => 'value');

$myTask = new MyTask;
$myTask->init($parameters);

Automaton::schedule($myTask, '2014-02-17 12:00:00');

```

Alternatively you can pass a Carbon object for setting the date :

```
Automaton::schedule($myTask, Carbon::now->addHours(2));

```

Scheduling Cron Jobs
--------------------

[](#scheduling-cron-jobs)

If you need your tasks to be run at regular intervals, you can pass cron expression to the scheduler :

```
// Run a task every minute
Automaton::cron($myTask, '* * * * *');

```

Happy Coding!

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% 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 ~18 days

Total

3

Last Release

4483d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7303327?v=4)[marvin-bot](/maintainers/marvin-bot)[@marvin-bot](https://github.com/marvin-bot)

---

Top Contributors

[![codextends](https://avatars.githubusercontent.com/u/3092179?v=4)](https://github.com/codextends "codextends (16 commits)")[![marvin-bot](https://avatars.githubusercontent.com/u/7303327?v=4)](https://github.com/marvin-bot "marvin-bot (5 commits)")

---

Tags

schedulerlaravelautomationcrontask

### Embed Badge

![Health badge](/badges/plateau-automaton/health.svg)

```
[![Health](https://phpackages.com/badges/plateau-automaton/health.svg)](https://phpackages.com/packages/plateau-automaton)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[ttree/scheduler

Simple task scheduler for Neos Flow Framework

21110.4k1](/packages/ttree-scheduler)[webtoolsnz/yii2-scheduler

A scheduled task runner for Yii2 applications

1883.6k](/packages/webtoolsnz-yii2-scheduler)[pmill/php-scheduler

Simple PHP task scheduler

1734.1k](/packages/pmill-php-scheduler)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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