PHPackages                             marlosoft/silex-routing-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. marlosoft/silex-routing-provider

ActiveLibrary[Framework](/categories/framework)

marlosoft/silex-routing-provider
================================

Routing service provider for silex micro-framework using annotations

1.0.0(8y ago)016MITPHP

Since Sep 14Pushed 8y agoCompare

[ Source](https://github.com/marlosoft/silex-routing-provider)[ Packagist](https://packagist.org/packages/marlosoft/silex-routing-provider)[ RSS](/packages/marlosoft-silex-routing-provider/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Silex Routing Service Provider
==============================

[](#silex-routing-service-provider)

Routing service provider for silex micro-framework using annotations. This uses `sensio/framework-extra-bundle` and `doctrine/common` libraries to use annotation for routing just like in Symfony2 framework.

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

[](#installation)

- Use composer ```
    composer require marlosoft/silex-routing-provider
    ```

Usage
-----

[](#usage)

1. Add Doctrine's annotation registry loader to autoload

    ```
    use Doctrine\Common\Annotations\AnnotationRegistry;

    $autoload = require('/path/to/vendor/autoload.php');
    AnnotationRegistry::registerLoader([$autoload, 'loadClass']);
    ```
2. Register the service provider to your application

    ```
    use Marlosoft\Silex\Provider\RoutingServiceProvider;

    $app = new Application();
    $app->register(new RoutingServiceProvider(), [
      'routes.directories' => ['/path/to/controllers/directory/']
    ]);
    ```

Options
-------

[](#options)

- `routes.directories` (*required*) is an array of directory paths where the annotations are evaluated
- `routes.cache` (*optional*) is the cache object that will be used to store the evaluated annotations.
    This is recommended in production deployments. Cache objects that can use used are `FilesystemCache` or `ApcuCache`

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Unknown

Total

1

Last Release

3212d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19203568?v=4)[Marlosoft](/maintainers/marlosoft)[@marlosoft](https://github.com/marlosoft)

---

Tags

annotationsphproutingsilex

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/marlosoft-silex-routing-provider/health.svg)

```
[![Health](https://phpackages.com/badges/marlosoft-silex-routing-provider/health.svg)](https://phpackages.com/packages/marlosoft-silex-routing-provider)
```

###  Alternatives

[aimeos/aimeos-symfony

Professional, full-featured and high performance Symfony e-commerce bundle for online shops and complex B2B projects

1.5k4.3k](/packages/aimeos-aimeos-symfony)[neos/flow

Flow Application Framework

842.1M487](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

143187.1k4](/packages/neos-flow-development-collection)[api-platform/doctrine-common

Common files used by api-platform/doctrine-orm and api-platform/doctrine-odm

273.9M41](/packages/api-platform-doctrine-common)[concrete5/core

Concrete – an open source content management system.

20163.8k49](/packages/concrete5-core)[sylius/core

Sylius e-commerce core. It integrates all components.

10152.3k39](/packages/sylius-core)

PHPackages © 2026

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