PHPackages                             marciodojr/slim-route-annotations - 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. marciodojr/slim-route-annotations

ActiveLibrary[Framework](/categories/framework)

marciodojr/slim-route-annotations
=================================

Write slim routes in your controllers/actions

v1.0.0(7y ago)04MITPHP

Since Nov 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/marciodojr/slim-route-annotations)[ Packagist](https://packagist.org/packages/marciodojr/slim-route-annotations)[ RSS](/packages/marciodojr-slim-route-annotations/feed)WikiDiscussions master Synced today

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

Slim Route Annotations
======================

[](#slim-route-annotations)

Allow you to create routes from annotations in controllers and actions

How to use
==========

[](#how-to-use)

Install
-------

[](#install)

```
composer require marciodojr/slim-route-annotations

```

Config
------

[](#config)

Add the key **routeAnnotations** in your settings array. Each element in the **routeAnnotations** array is a associative array with:

- *dir*: Directory where the controllers/actions are
- *namespacePrefix*: The namespace prefix of your controllers/actions. Ex.: for a class `SomeVendor\\Controller\\MyNiceController` the *namespacePrefix* is `SomeVendor\\Controller`.

```
