PHPackages                             bennetgallein/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. [API Development](/categories/api)
4. /
5. bennetgallein/annotations

ActiveLibrary[API Development](/categories/api)

bennetgallein/annotations
=========================

Annotations primarily for route declaration

v1.0.0(2y ago)06MITPHP

Since Oct 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bennetgallein/annotate.php)[ Packagist](https://packagist.org/packages/bennetgallein/annotations)[ RSS](/packages/bennetgallein-annotations/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (19)Used By (0)

annotate.php
============

[](#annotatephp)

This project provides Java style annotations for PHP.

Example
-------

[](#example)

Let's assume we're writing a web request router. We could use annotations to supply the routes and which method is associated.

#### Defining an annotation

[](#defining-an-annotation)

```
