nytris/turbo

Maintainers

Details

github.com/nytris/turbo

Source

Issues

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

dev-main 2025-03-10 01:43 UTC

This package is auto-updated.

Last update: 2025-03-10 10:18:04 UTC


README

Build Status

[EXPERIMENTAL] Turbocharged HTTP/FastCGI for PHP.

What is it?

Handle multiple HTTP/FastCGI requests concurrently per process for maximum resource utilisation.

How does it work?

Provides a FastCGI server that spawns multiple long-lived worker processes to handle requests. This allows the environment to be reused between requests, which is much more efficient when that environment is a booted Symfony kernel for example.

Usage

Install this package with Composer:

$ composer require nytris/turbo

Configure Nytris platform:

nytris.config.php

<?php

declare(strict_types=1);

use Nytris\Boot\BootConfig;
use Nytris\Boot\PlatformConfig;
use Nytris\Turbo\TurboPackage;

$bootConfig = new BootConfig(new PlatformConfig(__DIR__ . '/var/cache/nytris/'));

$bootConfig->installPackage(new TurboPackage(
    
));

return $bootConfig;

Start the CGI worker pool

$ vendor/bin/turbo

ignition process spawns manifold, which in turn spawns the pool of CGI cylinder processes. ignition is used to restart manifold and cylinder when needed, such as following a deployment of new code.

ignition takes no arguments, instead configuration is done through the Nytris package installation in nytris.config.php as documented above.

See also