PHPackages                             super-kernel/bootstrap - 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. super-kernel/bootstrap

ActiveLibrary[Framework](/categories/framework)

super-kernel/bootstrap
======================

Bootstrap metadata resolver for Super Kernel, providing project paths and Composer metadata before the Swoole runtime starts.

022↓91.7%1PHP

Since May 27Pushed 1mo agoCompare

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

READMEChangelogDependencies (9)Versions (2)Used By (1)

Super Kernel Bootstrap
======================

[](#super-kernel-bootstrap)

Bootstrap metadata resolver for Super Kernel.

This package resolves facts needed before the Swoole runtime starts:

- project root path, detected by the `composer.json` marker
- vendor path, including `config.vendor-dir`
- `composer.json` metadata
- optional `composer.lock` metadata
- current bootstrap environment facts

Requirements
------------

[](#requirements)

- PHP 8.4.x

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

[](#installation)

```
composer require super-kernel/bootstrap
```

Usage
-----

[](#usage)

```
use SuperKernel\Bootstrap\BootstrapContextFactory;

$bootstrapContext = BootstrapContextFactory::create();

$paths = $bootstrapContext->paths();
$composerJson = $bootstrapContext->composerJson();
$composerLock = $bootstrapContext->composerLock();

$rootPath = $paths->rootPath();
$vendorPath = $paths->vendorPath();
$packageName = $composerJson->name();

if ($composerLock !== null && $composerLock->hasPackage('swoole/ide-helper')) {
    // Package is installed.
}
```

Behavior
--------

[](#behavior)

- `composer.json` must exist and must decode to a JSON object.
- `composer.lock` is optional. Missing lock files resolve to `null`.
- `vendorPath()` respects `config.vendor-dir`, including relative paths, absolute paths, root paths, and `.` / `..` path segments.
- `RootResolver` can start from a directory, file path, or `phar://` URI and searches upward for the configured root marker.

Development
-----------

[](#development)

```
composer install
composer test
composer cs
composer cs:fix
composer validate:composer
```

This package follows Semantic Versioning 2.0.0.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance61

Regular maintenance activity

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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

91d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78034820?v=4)[wheakerd](/maintainers/wheakerd)[@wheakerd](https://github.com/wheakerd)

---

Top Contributors

[![wheakerd](https://avatars.githubusercontent.com/u/78034820?v=4)](https://github.com/wheakerd "wheakerd (2 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M831](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[pinguo/php-msf

Pinguo Micro Service Framework For PHP

1.7k4.2k](/packages/pinguo-php-msf)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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