A process manager for PHP that allows you to run multiple processes in parallel using the fork system call.
    • Fast-Forward-Fork
      • Getting Started
        • Installation
        • Quickstart
      • Usage
        • Getting Services
        • Worker Groups
        • Output and Errors
        • Signals
        • Use Cases
      • Advanced Topics
        • Integration
        • Extending and Customizing
        • Troubleshooting
      • API Reference
        • Fork Manager
        • Workers and Worker Groups
        • Signals API
        • Exceptions
      • Links and References
        • Dependencies
        • Coverage and Reports
      • FAQ
      • Compatibility
    • Namespaces
      • FastForward
        • Fork
          • Exception
          • Manager
          • Signal
          • Worker
    • Packages
      • FastForward
        • Fork
    • Reports
      • Deprecated
      • Errors
      • Markers
    • Indices
      • Files

    Usage

    This section documents the day-to-day usage patterns of the library, from instantiating the manager to coordinating groups, reading output, signaling workers, and structuring real-world use cases.

    • Getting Services
      • Direct instantiation
      • Instantiating with a custom signal handler
      • Instantiating with a PSR-3 logger
      • Container registration
      • Creating a manager inside a worker
      • What is not provided
    • Worker Groups
      • Core idea
      • Inspect all workers
      • Fetch a worker by PID
      • Inspect running and stopped subsets
      • Wait for the whole group
      • Signal the whole group
      • Gotchas
      • When to use the manager instead
    • Output and Errors
      • What is captured
      • Reading partial output
      • Reading final output
      • What is not intercepted automatically
      • Error handling behavior
      • Exit code normalization
      • Best practices
    • Signals
      • Using the Signal enum
      • Available public signals
      • Signal workers directly
      • Signal a whole group
      • Signal a subset through the manager
      • Default signal handling
      • Example
      • Signal-aware exit status
    • Use Cases
      • Parallel fan-out of independent tasks
      • Long-running workers with graceful shutdown
      • Selective shutdown
      • Partial output inspection
      • Worker-created subprocess trees
    Search results