PHPackages                             thenlabs/task-loop - 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. thenlabs/task-loop

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

thenlabs/task-loop
==================

v1.0.1(4y ago)16413MITPHP

Since Oct 11Pushed 4y agoCompare

[ Source](https://github.com/thenlabs/task-loop)[ Packagist](https://packagist.org/packages/thenlabs/task-loop)[ RSS](/packages/thenlabs-task-loop/feed)WikiDiscussions 1.0 Synced 6d ago

READMEChangelogDependencies (3)Versions (4)Used By (3)

TaskLoop
========

[](#taskloop)

A PHP implementation of a bare task loop.

> If you like this project gift us a ⭐.

Installation.
-------------

[](#installation)

```
$ composer require thenlabs/task-loop

```

Usage.
------

[](#usage)

The file `example.php` contains the below code which show that once the loop is started, it will runs each one of his tasks.

Each loop iteration is executed with a time interval which it's specified with the `start()` method.

A task can be a `callable` or an object which implements the `ThenLabs\TaskLoop\TaskInterface` interface.

```
