PHPackages                             symlex/di-microkernel - 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. symlex/di-microkernel

ActiveLibrary[Framework](/categories/framework)

symlex/di-microkernel
=====================

Micro-Kernel for PHP Applications

v2.0.4(7y ago)66.3k↓32.1%22MITPHPPHP &gt;=7.1

Since Feb 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/symlex/di-microkernel)[ Packagist](https://packagist.org/packages/symlex/di-microkernel)[ Docs](https://github.com/symlex/di-microkernel)[ RSS](/packages/symlex-di-microkernel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (16)Used By (2)

Micro-Kernel for PHP Applications
=================================

[](#micro-kernel-for-php-applications)

[![Latest Stable Version](https://camo.githubusercontent.com/a7713b1b7964519695d186fcbbf46ccee7486c57c33b680cd38cac0bb7458659/68747470733a2f2f706f7365722e707567782e6f72672f73796d6c65782f64692d6d6963726f6b65726e656c2f762f737461626c652e737667)](https://packagist.org/packages/symlex/di-microkernel)[![License](https://camo.githubusercontent.com/04ed6d984c107090807f9eaab827126ca2eafefdf0a813e69aefaa87b66ccc3a/68747470733a2f2f706f7365722e707567782e6f72672f73796d6c65782f64692d6d6963726f6b65726e656c2f6c6963656e73652e737667)](https://packagist.org/packages/symlex/di-microkernel)[![Test Coverage](https://camo.githubusercontent.com/e561bc3f403021fea50b266d0877fb2042c55f20e4b9eeeb9be90805b8600c19/68747470733a2f2f636f6465636f762e696f2f67682f73796d6c65782f64692d6d6963726f6b65726e656c2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/symlex/di-microkernel)[![Build Status](https://camo.githubusercontent.com/c0ad13be60bf95f93aed77dafa3ae2c1516b42973efff009d21b9e512971f1b6/68747470733a2f2f7472617669732d63692e6f72672f73796d6c65782f64692d6d6963726f6b65726e656c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/symlex/di-microkernel)[![Documentation](https://camo.githubusercontent.com/84e7e669c9ae017b0fad97fbe04fe187e788bc569eabc772c41e9a2ec33e2708/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f73796d6c65782d646f63732f62616467652f3f76657273696f6e3d6c6174657374267374796c653d666c6174)](https://docs.symlex.org/en/latest/di-microkernel)

This library contains a micro-kernel for bootstrapping almost any PHP application, including [Silex](https://silex.symfony.com/), [Symlex](https://github.com/symlex/symlex) (a framework stack for agile Web development based on Symfony) and [Symfony Console](https://symfony.com/doc/current/components/console.html). The kernel itself is just a few lines to set a bunch of environment parameters and create a service container instance with that.

[![Micro-Kernel Architecture](https://camo.githubusercontent.com/674acff89685064973c7b1c09f01e859b657f777e0952ffa0a8c733a7da29d37/68747470733a2f2f646f63732e73796d6c65782e6f72672f656e2f6c61746573742f64692d6d6963726f6b65726e656c2f696d672f6172636869746563747572652e737667)](https://camo.githubusercontent.com/674acff89685064973c7b1c09f01e859b657f777e0952ffa0a8c733a7da29d37/68747470733a2f2f646f63732e73796d6c65782e6f72672f656e2f6c61746573742f64692d6d6963726f6b65726e656c2f696d672f6172636869746563747572652e737667)

Run an App
----------

[](#run-an-app)

Creating a kernel instance and calling `run()` is enough to start an application:

```
#!/usr/bin/env php
