PHPackages                             autoframe/process-control - 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. autoframe/process-control

ActiveLibrary

autoframe/process-control
=========================

Process child worker, execution lock check, Autoframe Framework

1.0.1(2y ago)01262MITPHPPHP &gt;=7.4

Since Apr 4Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (2)

Autoframe is a low level framework that is oriented on SOLID flexibility
========================================================================

[](#autoframe-is-a-low-level-framework-that-is-oriented-on-solid-flexibility)

[![Build Status](https://github.com/autoframe/process-control/workflows/PHPUnit-tests/badge.svg)](https://github.com/autoframe/process-control/actions?query=branch:main)[![License: The 3-Clause BSD License](https://camo.githubusercontent.com/68fcec06f973dc97545c4695388b6c64c083392550ab34deac5a44c630e4c063/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6175746f6672616d652f70726f636573732d636f6e74726f6c)](https://opensource.org/license/bsd-3-clause/)[![Packagist Version](https://camo.githubusercontent.com/dae373f90841bbda2ce7787f313b89b4814cff5f4e3331385139beed8dc9ff85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6175746f6672616d652f70726f636573732d636f6e74726f6c3f6c6162656c3d7061636b6167697374253230737461626c65)](https://camo.githubusercontent.com/dae373f90841bbda2ce7787f313b89b4814cff5f4e3331385139beed8dc9ff85/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6175746f6672616d652f70726f636573732d636f6e74726f6c3f6c6162656c3d7061636b6167697374253230737461626c65)[![Downloads](https://camo.githubusercontent.com/4996f0b4400c0816d1f3b61c66ed2362dcdf3068e54b4d4601a19b4835b74db7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6175746f6672616d652f70726f636573732d636f6e74726f6c2e737667)](https://packagist.org/packages/autoframe/process-control)

*PHP worker instance create and inter process lock check Autoframe Framework*

```
/** Concrete implementation that uses the php temporary folder to store the lock */
namespace Autoframe\Process\Control\Lock;
class AfrLockFileClass implements AfrLockInterface
...
interface AfrLockInterface
{
    /** Check if the lock is in place */
    public function isLocked(): bool;

    /** Creates a new lock or fails */
    public function obtainLock(): bool;

    /** Returns false if lock is in place and the lock file can't be closed
     *  Returns true if there is no lock in place or operation was successfully made */
    public function releaseLock(): bool;

    /** Returns Process ID for the lock thread or zero if other case */
    public function getLockPid(): int;
}
```

---

```
/** Concrete implementation for create (spawn) worker process in background */
namespace Autoframe\Process\Control\Worker\Background;
class AfrBackgroundWorkerClass implements AfrBackgroundWorkerInterface
...
interface AfrBackgroundWorkerInterface
{
    /** Returns /usr/bin/php or C:\xampp\php\php.exe or php */
    public static function getPhpBin(): string;

    /** Calls: php $execFileArgs > /dev/null & or widows equivalent start /B */
    public static function execWithArgs(string $execFileArgs): void;
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

772d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6ba2f50102c2d35a8f6773c95fa270199a3af9c555dfc96ac85afb8c10a2a3c?d=identicon)[autoframe](/maintainers/autoframe)

---

Top Contributors

[![autoframe](https://avatars.githubusercontent.com/u/34517931?v=4)](https://github.com/autoframe "autoframe (8 commits)")

---

Tags

child workerchild threadchild spawnexecution lockinplace lockpid lock

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/autoframe-process-control/health.svg)

```
[![Health](https://phpackages.com/badges/autoframe-process-control/health.svg)](https://phpackages.com/packages/autoframe-process-control)
```

PHPackages © 2026

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