PHPackages                             thewunder/croute-bundle - 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. thewunder/croute-bundle

ActiveLibrary

thewunder/croute-bundle
=======================

Symfony Bundle for the Croute Router

07PHP

Since Nov 8Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Croute Symfony Bundle
=====================

[](#croute-symfony-bundle)

This package integrates the [Croute Router](https://github.com/thewunder/croute)into Symfony, and makes it available as a service.

Install using:

```
composer require thewunder/croute-bundle
```

Configure your controller namespace(s) in config/packages/croute.yaml

```
croute:
    namespaces:
      - App\Controller
```

In your Kernel.php return the CrouteKernel instead of the default symfony Router.

```
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;

class Kernel extends BaseKernel
{
    use MicroKernelTrait;

    public function getHttpKernel(): HttpKernelInterface
    {
        return  $this->getContainer()->get('croute.kernel');
    }
}
```

And all controllers in the configured namespace(s) and set up for autowiring.

```
namespace App\Controller

use Croute\Controller;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpFoundation\Response;

class IndexController extends Controller
{
    public function __construct(private readonly LoggerInterface $orm)
    {
    }

    public function indexAction(): Response
    {
        $this->logger->debug('IndexController->indexAction');
        return new Response('Hello from Croute!');
    }
}
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/thewunder-croute-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/thewunder-croute-bundle/health.svg)](https://phpackages.com/packages/thewunder-croute-bundle)
```

PHPackages © 2026

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