PHPackages                             procergs/login-cidadao-badges-template - 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. procergs/login-cidadao-badges-template

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

procergs/login-cidadao-badges-template
======================================

Template project for the badges system.

18PHP

Since Oct 3Pushed 11y ago11 watchersCompare

[ Source](https://github.com/PROCERGS/login-cidadao-badges-template)[ Packagist](https://packagist.org/packages/procergs/login-cidadao-badges-template)[ RSS](/packages/procergs-login-cidadao-badges-template/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Badges Template
===============

[](#badges-template)

This project is a template/example for implementing badges compatible with login-cidadao.

Implementing Your Own Badges
----------------------------

[](#implementing-your-own-badges)

### Bundle Generation

[](#bundle-generation)

First of all, generate a new Symfony 2 bundle and name it as you see fit. In this example we'll call it "Acme\\BadgesBundle".

Go on and start the interactive bundle generator:

```
$ php app/console generate:bundle
```

### Badge Model

[](#badge-model)

We'll need a Model class to represent your badges. This class can be as simple as the implementation of the `PROCERGS\LoginCidadao\BadgesBundle\Model\BadgeInterface`, thus we have:

```
