Download the PHP package vectorxhd/trophy-bundle without Composer
On this page you can find all versions of the php package vectorxhd/trophy-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vectorxhd/trophy-bundle
More information about vectorxhd/trophy-bundle
Files in vectorxhd/trophy-bundle
Download vectorxhd/trophy-bundle
More information about vectorxhd/trophy-bundle
Files in vectorxhd/trophy-bundle
Vendor vectorxhd
Package trophy-bundle
Short Description A simple trophy bundle for Symfony
License MIT
Homepage https://github.com/VectorXHD/TrophyBundle
Package trophy-bundle
Short Description A simple trophy bundle for Symfony
License MIT
Homepage https://github.com/VectorXHD/TrophyBundle
Please rate this library. Is it a good library?
Informations about the package trophy-bundle
TrophyBundle
Ce bundle est une "amélioration" du tutoriel de grafikart
Installation
Configuration
Il faut aussi implémenter UserTrophyInterface
sur votre entité user_class
Mettre a jour la base de donnée
Ajouter un badge
Voici l'exemple d'un badge utiliser pour les commentaire
Exemple d'utilisation
La méthode checkAndUnlock
a besoin de
- L'instance de l'utilisateur (
$this->getUser();
) - Le nom de l'action
- Le nombre de fois que l'action c'est produite
Dans cette exemple $commentsUserCount
correspond qu nombre de commentaire poser par l'utilisateur.
Événement
Il y a deux événement dispatch
TrophyUnlockedEvent::PRE_CREATE
TrophyUnlockedEvent::POST_CREATE
Cette événement dispose de plusieurs getter
getBadgeUnlock
getBadge
getUser
Todo
- Ajouter des test
Ajouter le bundle sur packagist- Tester sur plusieurs version de symfony
All versions of trophy-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.9
doctrine/data-fixtures Version ^1.3
doctrine/doctrine-bundle Version ^1.6
doctrine/orm Version ^2.5
sensio/framework-extra-bundle Version ^5.0.0
twig/twig Version ^1.0||^2.0
doctrine/data-fixtures Version ^1.3
doctrine/doctrine-bundle Version ^1.6
doctrine/orm Version ^2.5
sensio/framework-extra-bundle Version ^5.0.0
twig/twig Version ^1.0||^2.0
The package vectorxhd/trophy-bundle contains the following files
Loading the files please wait ....