PHPackages                             stephenlake/php-covert - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. stephenlake/php-covert

AbandonedArchivedLibrary[Queues &amp; Workers](/categories/queues)

stephenlake/php-covert
======================

Process background PHP tasks.

v0.0.4(6y ago)6692MITPHPPHP ^7.2

Since Oct 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/stephenlake/php-covert)[ Packagist](https://packagist.org/packages/stephenlake/php-covert)[ RSS](/packages/stephenlake-php-covert/feed)WikiDiscussions master Synced 3d ago

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

######  [![](https://raw.githubusercontent.com/stephenlake/php-covert/master/docs/assets/php-covert-banner.png)](https://raw.githubusercontent.com/stephenlake/php-covert/master/docs/assets/php-covert-banner.png)

[](#----)

######  Execute code as a background system process for Linux, Mac and Windows without relying on any external dependencies.

[](#----execute-code-as-a-background-system-process-for-linux-mac-and-windows-without-relying-on-any-external-dependencies)

[![Build Status](https://camo.githubusercontent.com/dffd750cc40233c13c663fcf11379c258c8324c51fea71469cac9bd749259451/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7374657068656e6c616b652f7068702d636f766572742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/stephenlake/php-covert)[![StyleCI](https://camo.githubusercontent.com/df41725df32c72bd05acdf2999ec8d895ed90814012baa69f5fd59bb979b0430/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3135343734363637382f736869656c643f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.styleci.io/repos/154746678)[![](https://camo.githubusercontent.com/a81ad8cfdd9b9b47dbc9927650b1df09bc45685901a7f53fe81fc0e368b61e06/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7374657068656e6c616b652f7068702d636f766572742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/stephenlake/php-covert)[![](https://camo.githubusercontent.com/6410d87cc441d7da8ba02ecae51dc9ec5af5ddde54decf29ed8c67c8e666b767/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7374657068656e6c616b652f7068702d636f766572742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stephenlake/php-covert) [![Release](https://camo.githubusercontent.com/4803110eebed2044105d453934f2fd0a2a2fc9d2f5886b56dab88d92d6f5e5b1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7374657068656e6c616b652f7068702d636f766572742e7376673f7374796c653d666c61742d737175617265)](https://github.com/stephenlake/php-covert)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/stephenlake/php-covert/LICENSE.md)

PHP Covert
==========

[](#php-covert)

**PHP Covert** makes running inline code as background tasks in PHP a piece of cake without the need to install external software nor enable additional extensions. Plan your operation and execute it instantly as a background process.

Made with ❤️ by [Stephen Lake](http://stephenlake.github.io/). Maintained with ❤️ by [Paweł Kłopotek-Główczewski](https://github.com/pawelkg).

Disclaimer
----------

[](#disclaimer)

This package does not make use of threading and is **not** intended to replace queues/workers, it's more of a hack than anything and is not the 'proper' way to schedule tasks nor run them in the background. This package was created as an experiment and published due to the frequently asked questions of 'how to run a PHP task in the background'.

Getting Started
---------------

[](#getting-started)

Install the package via composer.

```
composer require stephenlake/php-covert

```

Try it!

```
use Covert\Operation;

$operation = new Operation();
$operation->setLoggingFile('log.txt');
$operation->execute(function() {
     $counter = 0;

     while($counter < 120) {
        $counter++;
        sleep(1);
        echo "I have been running in the background for {$counter} seconds!".PHP_EOL;
     }
});

// Continue with your app's logic here while your background task is running
```

That's it. Your task is now running in the background as a process. Get the process ID with `$operation->getProcessID()`. Check out the [documentation](https://stephenlake.github.io/php-covert) for further usage and features.

License
-------

[](#license)

This library is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.7% 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 ~99 days

Total

4

Last Release

2457d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1300442?v=4)[Stephen Lake](/maintainers/stephenlake)[@stephenlake](https://github.com/stephenlake)

---

Top Contributors

[![pawelkg](https://avatars.githubusercontent.com/u/1854055?v=4)](https://github.com/pawelkg "pawelkg (23 commits)")[![stephenlake](https://avatars.githubusercontent.com/u/1300442?v=4)](https://github.com/stephenlake "stephenlake (6 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

processpidbackground-tasknohup

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stephenlake-php-covert/health.svg)

```
[![Health](https://phpackages.com/badges/stephenlake-php-covert/health.svg)](https://phpackages.com/packages/stephenlake-php-covert)
```

###  Alternatives

[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)[qruto/laravel-flora

Install and update Laravel application with single command

13197.8k](/packages/qruto-laravel-flora)[symplely/coroutine

Cooperative multitasking using generators. The basics of coroutines, async and await!

621.6k2](/packages/symplely-coroutine)

PHPackages © 2026

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