nytris/ignition
Composer 安装命令:
composer create-project nytris/ignition
包简介
README 文档
README
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
统计信息
- 总下载量: 70
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-01