Download the PHP package maba/avatar-bundle without Composer
On this page you can find all versions of the php package maba/avatar-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download maba/avatar-bundle
More information about maba/avatar-bundle
Files in maba/avatar-bundle
Download maba/avatar-bundle
More information about maba/avatar-bundle
Files in maba/avatar-bundle
Vendor maba
Package avatar-bundle
Short Description Symfony2 bundle for getting and displaying user's avatar
License MIT
Package avatar-bundle
Short Description Symfony2 bundle for getting and displaying user's avatar
License MIT
Please rate this library. Is it a good library?
Informations about the package avatar-bundle
Avatar bundle
What's that?
Symfony2 bundle to get avatar image for given email.
It lets to register additional avatar providers so that most appropriate avatar can be selected.
It includes one default avatar provider - GravatarProvider
.
Installing
Inside AppKernel::registerBundles
:
Configuring
Adding avatar provider
- Make class which implements
Maba\Bundle\AvatarBundle\Service\AvatarProviderInterface
. - Register it as a service.
- Add tag
maba_avatar.avatar_provider
to that service. - Optionally provide
priority
attribute to that tag. Smallest number means provider will be called first.GravatarProvider
haspriority
9000
, but always returns URI, so your priorities should be smaller than that. If not provided, defaults to0
.
Example:
Running tests
All versions of avatar-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.2
symfony/framework-bundle Version ^2.3
maba/dependency-injection-extra Version ^0.1
symfony/framework-bundle Version ^2.3
maba/dependency-injection-extra Version ^0.1
The package maba/avatar-bundle contains the following files
Loading the files please wait ....