nytris/ignition

Installs: 60

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:project

pkg:composer/nytris/ignition

dev-main 2026-02-01 22:59 UTC

This package is auto-updated.

Last update: 2026-02-01 22:59:18 UTC


README

Build Status

Caches filesystem hits during early Nytris boot when open_basedir is enabled, prior to Nytris Antilag and later Boost starting. Installs a minimal autoloader for use in the pre-Composer-autoloader environment.

Usage

Install this package with Composer:

$ composer require nytris/ignition

Configure Nytris Ignition:

nytris.ignition.php

<?php

declare(strict_types=1);

use Nytris\Antilag\AntilagPreflight;
use Nytris\Antilag\Stage;
use Nytris\Ignition\IgnitionConfig;

$ignitionConfig = new IgnitionConfig();

// Install preflights - Antilag is recommended.
$ignitionConfig->installPreflight(new AntilagPreflight(stage: Stage::STAGE_1));

return $ignitionConfig;

Invoke Ignition as early as possible

e.g. from a front controller:

app.php

<?php

if (getenv('ENABLE_NYTRIS_IGNITION') !== 'no') {
    require dirname(__DIR__) . '/vendor/nytris/ignition/ignition.php';
    Ignition::start(dirname(__DIR__));
}

require dirname(__DIR__) . '/vendor/autoload.php';

// Using Symfony as an example:
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
// ...

See also