定制 nytris/ignition 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nytris/ignition

Composer 安装命令:

composer create-project nytris/ignition

包简介

README 文档

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

统计信息

  • 总下载量: 70
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固