PHPackages                             saxulum/saxulum-controller-provider - 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. saxulum/saxulum-controller-provider

AbandonedArchivedLibrary[Framework](/categories/framework)

saxulum/saxulum-controller-provider
===================================

A controller registration provider

1.1.0(12y ago)148MITPHPPHP &gt;=5.3

Since Jun 30Pushed 8y agoCompare

[ Source](https://github.com/saxulum-legacy/saxulum-controller-provider)[ Packagist](https://packagist.org/packages/saxulum/saxulum-controller-provider)[ RSS](/packages/saxulum-saxulum-controller-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

saxulum controller provider
===========================

[](#saxulum-controller-provider)

**works with plain silex-php**

[![Build Status](https://camo.githubusercontent.com/84d52d92a3c970f62a0c3b14d720962f4cf8316ddf5e2f3a0a954e2a86f9e41f/68747470733a2f2f6170692e7472617669732d63692e6f72672f736178756c756d2f736178756c756d2d636f6e74726f6c6c65722d70726f76696465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/saxulum/saxulum-controller-provider)[![Total Downloads](https://camo.githubusercontent.com/23e29291a2fdf94f9c96fe5f521f86c7b6f3c73257c7c43159658b5bee19c0e2/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d636f6e74726f6c6c65722d70726f76696465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/saxulum/saxulum-controller-provider)[![Latest Stable Version](https://camo.githubusercontent.com/a46c4e7d350ca96f52024d1546c5c39b9d99c5380c4ad03cf81942800058ab42/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d636f6e74726f6c6c65722d70726f76696465722f762f737461626c652e706e67)](https://packagist.org/packages/saxulum/saxulum-controller-provider)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8a4c5dc9cad29296be3607e3b185ab45f7d1decdcd15115431c5c2f7c63eb31e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736178756c756d2f736178756c756d2d636f6e74726f6c6c65722d70726f76696465722f6261646765732f7175616c6974792d73636f72652e706e673f733d62643935353533303036363935613863393461356431323165356533666539333065646332303164)](https://scrutinizer-ci.com/g/saxulum/saxulum-controller-provider/)

Features
--------

[](#features)

- Register Controllers as a Service with container, \_\_construct and method injection
- register their actions over a static method within the controller

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

[](#requirements)

- php &gt;=5.3
- silex/silex ~1.0

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

[](#installation)

The [ServiceControllerServiceProvider](http://silex.sensiolabs.org/doc/providers/service_controller.html) from silex itself is needed!

```
$app->register(new ServiceControllerServiceProvider());
$app->register(new SaxulumControllerProvider());
```

Usage
-----

[](#usage)

The example controllers [ContainerExampleController](https://github.com/saxulum/saxulum-controller-provider/blob/master/src/Saxulum/SaxulumControllerProvider/Controller/ContainerExampleController.php) and [ServiceExampleController](https://github.com/saxulum/saxulum-controller-provider/blob/master/src/Saxulum/SaxulumControllerProvider/Controller/ServiceExampleController.php) they implement [ControllerRouteInterface](https://github.com/saxulum/saxulum-controller-provider/blob/master/src/Saxulum/SaxulumControllerProvider/Controller/ControllerRouteInterface.php)

```
public static function addRoutes(Application $app, $serviceId)
{
    $app
        ->get('/container', $serviceId . ':indexAction')
        ->bind('container_index')
    ;
}
```

```
$app['controller.map']
    ->addController()
        ->setNamespace('Saxulum\SaxulumControllerProvider\Controller\ContainerExampleController')
        ->setServiceId('saxulum.saxulumcontrollerprovider.controller.containerinjectcontroller')
        ->setInjectContainer(true)
    ->end()
    ->addController()
        ->setNamespace('Saxulum\SaxulumControllerProvider\Controller\ServiceExampleController')
        ->setServiceId('saxulum.saxulumcontrollerprovider.controller.serviceController')
        ->setInjectionKeys(array('test.data'))
        ->addMethod()
            ->setName('setTestData1')
            ->setInjectionKeys(array('test.data'))
        ->end()
        ->addMethod()
            ->setName('setTestData2')
            ->setInjectionKeys(array('test.data'))
        ->end()
    ->end()
;
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

4697d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55048de83ca5e5d8c67164a19c78edcaad413b0c1a4ae10d92edf8d77bedd90f?d=identicon)[dominikzogg](/maintainers/dominikzogg)

---

Top Contributors

[![dominikzogg](https://avatars.githubusercontent.com/u/1011217?v=4)](https://github.com/dominikzogg "dominikzogg (36 commits)")

---

Tags

controllersilex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saxulum-saxulum-controller-provider/health.svg)

```
[![Health](https://phpackages.com/badges/saxulum-saxulum-controller-provider/health.svg)](https://phpackages.com/packages/saxulum-saxulum-controller-provider)
```

###  Alternatives

[ddesrosiers/silex-annotation-provider

A silex service provider that allows the use of annotations in ServiceControllers.

25246.7k3](/packages/ddesrosiers-silex-annotation-provider)[tobiassjosten/responsible-service-provider

A Silex ServiceProvider for automagic response formatting.

3490.8k](/packages/tobiassjosten-responsible-service-provider)[propel/propel-service-provider

Propel integrationfor Silex.

2625.2k3](/packages/propel-propel-service-provider)

PHPackages © 2026

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