PHPackages                             switon/kernel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. switon/kernel

ActiveLibrary[Framework](/categories/framework)

switon/kernel
=============

Application bootstrap for environment, config, provider lifecycle, and fatal error handling for Switon Framework

v1.0.0(1mo ago)0305MITPHPPHP &gt;=8.3CI passing

Since Jun 6Pushed 2mo agoCompare

[ Source](https://github.com/switon-php/kernel)[ Packagist](https://packagist.org/packages/switon/kernel)[ Docs](https://github.com/switon-php/kernel)[ RSS](/packages/switon-kernel/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (10)Versions (2)Used By (5)

Switon Kernel Package
=====================

[](#switon-kernel-package)

[![Kernel CI](https://camo.githubusercontent.com/b824d901dd7f332dc6a2ee359c06e49b8419bd91ad21f87a1ada636deeb81b7b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f737769746f6e2d7068702f6b65726e656c2f63692e796d6c3f6272616e63683d6d61696e266c6162656c3d4b65726e656c2532304349)](https://github.com/switon-php/kernel/actions/workflows/ci.yml) [![PHP 8.3+](https://camo.githubusercontent.com/c03f51341eebaefabbf137e291b20523fc74b4ffd084406d88524d266d95085d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332532422d373737424234)](https://www.php.net/)

Switon's application bootstrap kernel for env loading, config merging, provider lifecycle, and fatal handling.

Highlights
----------

[](#highlights)

- **Single bootstrap entrypoint:** `KernelInterface::start()` starts the application from one contract.
- **Config loading:** root YAML and PHP config files are merged together.
- **Provider discovery and overrides:** built-in and app providers are loaded in one bootstrap flow.
- **Autowiring and boot order:** services are wired before runtime control is handed over.
- **Fatal handling:** the kernel sets up fatal handling during bootstrap.
- **Runtime checks:** the kernel includes a version command for quick verification.

Installation
------------

[](#installation)

```
composer require switon/kernel
```

Quick Start
-----------

[](#quick-start)

```
use Switon\Kernel\Kernel;

class AppKernel extends Kernel
{
    public function start(): void
    {
        parent::start();
        // Attach HTTP server, CLI loop, worker, etc.
    }
}

(new AppKernel(__DIR__))->start();
```

Docs:

License
-------

[](#license)

MIT.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance87

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc0f20ad15b0ae9fbf9c6e2cd3008692b0c88a877ec8d3e0119211314bf86fc8?d=identicon)[switon](/maintainers/switon)

---

Top Contributors

[![switon-php](https://avatars.githubusercontent.com/u/247358032?v=4)](https://github.com/switon-php "switon-php (6 commits)")

---

Tags

bootstrapkernelprovidersswitonprovidersbootstrapkernelswiton

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/switon-kernel/health.svg)

```
[![Health](https://phpackages.com/badges/switon-kernel/health.svg)](https://phpackages.com/packages/switon-kernel)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M20.5k](/packages/laravel-framework)[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k16](/packages/tempest-framework)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19566.0M1.8k](/packages/drupal-core)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M600](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
