Skip to content
@super-kernel

super-kernel

English | 中文文档

SuperKernel

PHP Swoole Platform License Code Style

SuperKernel is a component-oriented PHP framework for long-running Swoole applications. Each component is an independent Composer package under super-kernel/*, built on native PHP attributes, a PSR-11 container, and standard PSR interfaces.

Note

SuperKernel is under active development and has not been released. The repositories carry no tagged releases, and APIs may still change. Each repository's main branch is the current development line.

Highlights

  • Swoole runtime: server startup, main-process supervision, attribute-driven HTTP serving, background processes, and connection pools on ext-swoole.
  • Scan before run: attributes are collected in an isolated scan before the application starts, backed by Composer package metadata and cached class graphs.
  • Dependency injection: a PSR-11 shared-service container with constructor autowiring, typed lazy configuration, and strict typed environment access.
  • Aspect-oriented programming: aspect declarations, method weaving, join points, and interceptor dispatch on top of source transformation with hash-validated file proxies.
  • PSR interoperability: PSR-3 logging, PSR-7 HTTP messages, PSR-11 containers, PSR-14 events, and PSR-15 request handlers and middleware.
  • Console: a Symfony Console application runtime with lazy command registration.

Requirements

  • PHP >=8.4.27 <8.5
  • ext-swoole >=6.2.3 <6.3 for the Swoole-based components: http-server, pool, process, server, and swoole
  • ext-redis >=6.3.0 <6.4 for redis
  • Linux; some components also require ext-pcntl, ext-posix, or ext-sockets. Each repository's composer.json lists its exact requirements.

Components

Area Component Description
Application skeleton Composer project template for new applications.
Application framework Symfony Console application runtime and PSR-14 dispatcher adaptation.
Application context Application container and transparent execution-scope context.
Application command Lazy Symfony Console command registration.
Application event Application startup event declaration.
Application event-dispatcher PSR-14 event dispatching with native Attribute listener discovery.
Application exception-dispatcher Attribute-driven exception handler discovery and dispatch.
Container di PSR-11 shared-service container with constructor autowiring.
Container config Typed lazy configuration source registry.
Container environment Ordered external property sources and strict typed environment access.
Container contract Shared interface-only application, infrastructure, reflection, and event contracts.
Container support Dependency-free namespaced helpers for caller-owned short-lived instances.
Attributes attribute Native PHP Attribute contracts for configuration, DI, events, and third-party integrations.
Attributes annotator Isolated package-aware PHP attribute collection.
Attributes scan-isolation Anonymous scan callback isolation.
Attributes tokenizer PHP class-like declaration tokenizer.
Attributes reflector Process-local cached native reflection service.
Attributes composer Composer package metadata and cached class graphs.
Attributes autoloader Factory-bootstrapped classmap autoloading and interception.
Attributes composer-source-reference-plugin Deterministic source references for Composer path packages.
AOP aop Aspect declarations, method weaving, join points, and interceptor dispatch through Mimic.
AOP mimic Source preparation with pluggable transformations, source-hash-validated file proxies, and stream fallback.
Swoole server Swoole server startup services and console command.
Swoole swoole Swoole console commands and main process supervision.
Swoole http-server Attribute-driven HTTP routing, middleware, and Swoole integration.
Swoole http-message PSR-7 messages and scoped HTTP message access.
Swoole process Background process supervision and direct IPC.
Swoole pool Connection pools with coroutine, process, and thread coordination.
Integrations logger Monolog-backed PSR-3 logger factories and named stdout logging.
Integrations redis Redis integration.
Integrations filesystem Lifecycle-safe readable filesystem resource abstractions.

Repositories

Each component is published here as an individual repository. Repositories without a current component are archived.

License

Every component is released under the MIT License. AOP and Mimic also include a NOTICE file with their source attribution.

Popular repositories Loading

  1. composer-plugin composer-plugin Public archive

    PHP

  2. super-kernel-skeleton super-kernel-skeleton Public archive

    Project template for the SuperKernel framework.

    PHP

  3. stream stream Public archive

    The stream component for super-kernel.

    PHP

  4. skernel skernel Public archive

    The skernel is a composer-plugin for super-kernel.

    PHP

  5. annotation annotation Public archive

    The annotation component for super-kernel.

    PHP

  6. resource resource Public archive

    The Super-Kernel core package offers a consistent and extensible interface to abstract and manage access to low-level resources.

Repositories

Showing 10 of 48 repositories

Top languages

Loading…

Most used topics

Loading…