Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Process Control Bundle Laravel Package

aboutcoders/process-control-bundle

Symfony bundle providing process control via a container service (abc.process_control.controller). Default PCNTL implementation listens for SIGTERM so long-running jobs can detect when to exit. Service registration can be disabled via configuration.

View on GitHub
Deep Wiki
Context7

AbcProcessControlBundle

A symfony bundle that provides process control.

Build Status: Build Status

Installation

Add the AbcProcessControlBundle to your composer.json file

{
    "require": {
        "aboutcoders/process-control-bundle": "~1.0"
    }
}

Then include the bundle in the AppKernel.php class

public function registerBundles()
{
    $bundles = array(
        // ...
        new Abc\Bundle\ProcessControlBundle\AbcProcessControlBundle(),
        // ...
    );
}

Usage

The AbcProcessControlBundle registers a service with the name abc.process_control.controller in the service container. This service is by default initialized with a PCNTL implementation, that listents to the SIGTERM event and thus indicates to exist, when this signal was sent.


    $controller = $container->get('abc.process_control.controller');
    
    if($controller->doExit()){
        // true if SIGTERM was sent
    }

Configuration

Registration of the service abc.process_control.controller is enabled by default. You can disable that with the following configuration:

abc_process_control:
    register_controller: false

Note: When registration is disabled the service abc.process_control.controller does not exist within the service container.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
anousss007/vigilance
supportpal/eloquent-model
ardenexal/fhir-models
laravel-at/laravel-image-sanitize
romalytar/yammi-audit-log-laravel
ardenexal/fhir-validation
arshaviras/weather-widget
laravel-chronicle/core
sunchayn/nimbus
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon