PHPackages                             tomphp/tjo-annotation-router - 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. tomphp/tjo-annotation-router

AbandonedArchivedLibrary

tomphp/tjo-annotation-router
============================

ZF2 module which lets routing be configured by via annotations on your controller classes..

93463[1 issues](https://github.com/tomphp/TjoAnnotationRouter/issues)PHP

Since Aug 10Pushed 12y ago4 watchersCompare

[ Source](https://github.com/tomphp/TjoAnnotationRouter)[ Packagist](https://packagist.org/packages/tomphp/tjo-annotation-router)[ RSS](/packages/tomphp-tjo-annotation-router/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TjoAnnotationRouter
===================

[](#tjoannotationrouter)

[![Build Status](https://camo.githubusercontent.com/1f1645ad3a82afc4964d288c51fea8912507736d69e50f38f5687ce50776bab7/68747470733a2f2f7472617669732d63692e6f72672f746f6d7068702f546a6f416e6e6f746174696f6e526f757465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/tomphp/TjoAnnotationRouter)

This module allows the use of annotations in your controller classes to configure the router.

Installation
============

[](#installation)

Added the following requirement to your projects composer.json file.

```
"tomphp/tjo-annotation-router": "dev-master"

```

and run

```
php ./composer.phar update

```

and finally add `TjoAnnotationRouter` to your modules list in `config/application.php`.

Usage
=====

[](#usage)

Annotating the controller
-------------------------

[](#annotating-the-controller)

First up annotate your controller like so:

```
