PHPackages                             ikoene/symfony-micro - 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. ikoene/symfony-micro

ActiveProject

ikoene/symfony-micro
====================

Symfony 3 Micro Trait application

1.0.5(8y ago)352241MITPHP

Since Dec 7Pushed 8y ago2 watchersCompare

[ Source](https://github.com/ikoene/symfony-micro)[ Packagist](https://packagist.org/packages/ikoene/symfony-micro)[ RSS](/packages/ikoene-symfony-micro/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (3)Versions (7)Used By (0)

[![Build Status](https://camo.githubusercontent.com/1137e24f18990982bce1aa121cc7a9e8af1c48ef7f419e27de3917526d9122bd/68747470733a2f2f7472617669732d63692e6f72672f696b6f656e652f73796d666f6e792d6d6963726f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ikoene/symfony-micro)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/cf66d6b8f5d9585543f8ebf491fe5c97cc2ac618c292277929a6f9fa2ddb081e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f696b6f656e652f73796d666f6e792d6d6963726f2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ikoene/symfony-micro/?branch=master)[![SensioLabs Insight](https://camo.githubusercontent.com/495ca9e31ef7689491c3bd527e5217f43253d90639cdcee265c646f1f84496a7/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f37613535366334342d383132382d343965302d616337652d6436663630316437666563372e737667)](https://insight.sensiolabs.com/projects/7a556c44-8128-49e0-ac7e-d6f601d7fec7)[![Packagist](https://camo.githubusercontent.com/287f7ae9c9ce7f58a8b7da962cbb5e562b2e09a46d1acfd393a03615527ec7fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696b6f656e652f73796d666f6e792d6d6963726f2e737667)](https://packagist.org/packages/ikoene/symfony-micro)[![Installs](https://camo.githubusercontent.com/8615f415d9bb8662898d51c0661d416576de9031e4237004cf55848127ddc99f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696b6f656e652f73796d666f6e792d6d6963726f2e737667)](https://packagist.org/packages/ikoene/symfony-micro)[![license](https://camo.githubusercontent.com/927143abd04efe58e753ec333af9a468191deae13b5d453fa68c913fa693ea51/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f696b6f656e652f73796d666f6e792d6d6963726f2e737667)](https://github.com/ikoene/symfony-micro/blob/master/LICENSE.md)

Symfony micro-framework
=======================

[](#symfony-micro-framework)

Use Symfony as a microframework.

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

[](#installation)

Create a new project with [Composer](https://getcomposer.org/).

```
composer create-project ikoene/symfony-micro
```

MicroKernelTrait
----------------

[](#microkerneltrait)

The **MicroKernelTrait** allows you to create a fully-functional Symfony application in as little as one file. It allows you to start with a tiny application, and then add features and structure as you need to. Its goal to give you the power to choose your bundles and structure. Since you're only enabling features and bundles you're actually going to use, your application gets a performance boost in comparison with using the Symfony full-stack framework.

Bundles
-------

[](#bundles)

These bundles are registered in the MicroKernel:

- [FrameworkBundle](https://github.com/%5Dsymfony/framework-bundle)
- [SensioFrameworkExtraBundle](https://github.com/sensiolabs/SensioFrameworkExtraBundle)
- [TwigBundle](https://github.com/symfony/twig-bundle)

While you could argue what exactly should and should not be included in a microframework, I found myself always using these bundles. So they're enabled by default. Don't want to use Twig as your template engine? Remove it in the MicroKernel.

When working in a *dev* or *test* environment, the **MicroKernel** also registers the necesarry bundles to be able to debug your project:

- [WebProfilerBundle](https://github.com/symfony/web-profiler-bundle)
- [DebugBundle](https://github.com/symfony/debug-bundle)

Usage
-----

[](#usage)

### Development

[](#development)

Build your application in the AppBundle. You're free to structure your application as you want, but following the typical Symfony bundle structure has it's advantages. For one, it would be easier to migrate to a full-stack Symfony project if your application grows too big.

But, as I said, the choice is yours.

### Register bundles

[](#register-bundles)

Missing some features? Register your bundles in the MicroKernel:

```
...
	$bundles = array(
		new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
		new Symfony\Bundle\TwigBundle\TwigBundle(),
		new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
		new AppBundle\AppBundle(),
	);
...
```

### Console

[](#console)

While this is a microframework, chances are you'll still need the console. Use it like this:

```
./console
```

### PHPUnit Testing

[](#phpunit-testing)

Run all tests with this command:

```
bin/phpunit -c .
```

Additional info
===============

[](#additional-info)

[Building your own Framework with the MicroKernelTrait](https://symfony.com/doc/2.8/cookbook/configuration/micro-kernel-trait.html)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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

Every ~148 days

Recently: every ~183 days

Total

6

Last Release

3063d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3289852af4fd4c5c5a9bae687b2c540d75ba7feda132c5599d57398b321ad644?d=identicon)[ikoene](/maintainers/ikoene)

---

Top Contributors

[![ikoene](https://avatars.githubusercontent.com/u/1136847?v=4)](https://github.com/ikoene "ikoene (35 commits)")[![OndraM](https://avatars.githubusercontent.com/u/793041?v=4)](https://github.com/OndraM "OndraM (1 commits)")

---

Tags

micro-frameworkmicrokernelsymfonysymfony-micro

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ikoene-symfony-micro/health.svg)

```
[![Health](https://phpackages.com/badges/ikoene-symfony-micro/health.svg)](https://phpackages.com/packages/ikoene-symfony-micro)
```

###  Alternatives

[ed/blog-bundle

Symfony EDBlogBundle

348.4k](/packages/ed-blog-bundle)[ecentria/ecentria-rest-bundle

Goal of this bundle is to simplify process of creating APIs with Symfony. We use already well-coded libraries, combine them together to simplify process and not to re-invent the wheel. We've chose REST and HATEOS to have unified standards of API requests and responses.

142.4k](/packages/ecentria-ecentria-rest-bundle)[symfonyid/admin-bundle

Provide Admin Generator with KISS Principle

141.6k](/packages/symfonyid-admin-bundle)

PHPackages © 2026

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