PHPackages                             cobaia/cobaia-annotation - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cobaia/cobaia-annotation

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

cobaia/cobaia-annotation
========================

CakePHP Plugin with a collection of Annotations to use

311[4 issues](https://github.com/krolow/CobaiaAnnotation/issues)PHP

Since Feb 4Pushed 13y agoCompare

[ Source](https://github.com/krolow/CobaiaAnnotation)[ Packagist](https://packagist.org/packages/cobaia/cobaia-annotation)[ RSS](/packages/cobaia-cobaia-annotation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CobaiaAnnotation
================

[](#cobaiaannotation)

Annotations in CakePHP.

Why?
----

[](#why)

- Because Annotations are cool!
- Because We like (or at least I like)
- Because no make sense repeate over and over the same code in PHP
- Use PHP array to configure is sux
- Metadata and Metaprogramming are cool!

Installing
----------

[](#installing)

CobaiaAnnotations make usage of [composer](http://getcomposer.org), so download composer and create your `app/composer.json`

```
{
    "name": "testing",
    "require": {
        "php": ">=5.3.0",
        "cakephp/debug_kit" : "*",
        "cobaia/cobaia-annotation": "dev-master"
    },
    "minimum-stability": "dev"
}
```

It's time to running `composer.phar install`

After install it's time to load the plugin, open `app/Config/bootstrap.php`

```
CakePlugin::load('CobaiaAnnotation', array('bootstrap' => true));

//register filter
Configure::write('Dispatcher.filters', array(
    'AssetDispatcher',
    'CacheDispatcher',
    'CobaiaAnnotation.AnnotationDispatcher'
));
```

What annotations do we have in CobaiaAnnotation?
------------------------------------------------

[](#what-annotations-do-we-have-in-cobaiaannotation)

### @ParamConverter

[](#paramconverter)

```
