PHPackages                             bangpound/kernel-traits - 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. bangpound/kernel-traits

ActiveLibrary

bangpound/kernel-traits
=======================

Symfony kernel traits

046PHP

Since Dec 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/bangpound/kernel-traits)[ Packagist](https://packagist.org/packages/bangpound/kernel-traits)[ RSS](/packages/bangpound-kernel-traits/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Symfony Kernel Traits
=====================

[](#symfony-kernel-traits)

Symfony 2.8 has that new [Microkernel trait](http://symfony.com/blog/new-in-symfony-2-8-symfony-as-a-microframework) and this package contains some other simple traits that can support development of simple Symfony Kernel applications.

Using these traits effectively probably requires you to store configuration in the environment with [`SYMFONY__` prefixed envrionment variables](http://symfony.com/doc/current/cookbook/configuration/external_parameters.html).

`ClassBasedNameTrait`
---------------------

[](#classbasednametrait)

Use this trait in your kernel to base the kernel's name on its class name instead of its directory.

`VariableFilesystemTrait`
-------------------------

[](#variablefilesystemtrait)

Use this trait in your kernel to store cache and logs in the Symfony 3 standard `var` location. If you have multiple kernels in the same directory, you will need to use `ClassBasedNameTrait` to avoid conflicts.

`YamlEnvironmentTrait`
----------------------

[](#yamlenvironmenttrait)

Use this trait in your kernel to parse environment variables as YAML before populating the container parameters.

`StandardConfigTrait` and `MinimalConfigTrait`
----------------------------------------------

[](#standardconfigtrait-and-minimalconfigtrait)

These two traits are probably not useful in any real sense, but they demonstrate how to sustain a Symfony Standard configuration with the microkernel trait and the bare minimum required to instantiate the kernel and framework, respectively.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![bangpound](https://avatars.githubusercontent.com/u/6731?v=4)](https://github.com/bangpound "bangpound (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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