Download the PHP package dwr/avatar-bundle without Composer

On this page you can find all versions of the php package dwr/avatar-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package avatar-bundle

SensioLabsInsight

License Latest Stable Version Total Downloads Build Status Scrutinizer Code Quality Coverage Status

DwrAvatarBundle

This bundle provides easy image avatar generator support for Symfony2 and Symfony3.

Example of avatars:

plainAvatars:

        

profileAvatars:

        

In order to generate Avatar you can:

In Controller

And in a view file (twig):

Installation

Installation is a quick 3 steps process:

  1. Download DwrAvatarBundle using composer
  2. Enable the Bundle
  3. Add routing to routing.yml in order to can open example in your browser

Step 1: Download DwrAvatarBundle using composer

Add DwrAvatarBundle in version 2.0 (for Symfony 3) in your composer.json:

Add DwrAvatarBundle in version 1.0 (for Symfony 2) your composer.json:

Download the bundle by running the command:

Composer will install the bundle into your project's vendor/dwr/avatar-bundle directory.

Step 2: Enable the bundle

Enable the bundle in the kernel:

Step 3: Add routing to routing.yml in order to can open example in your browser

Congratulations! You're ready to generate avatars in your symfony application. Example how PlainAvatar looks like you can find on: yours-application-url/dwr_avatarbundle/avatar .

Usage

Generate avatar in base64 stream

Controller

View (twig)

Outputs

        

        

Example how to generate avatars in base64 stream is also stored in AvatarBundle/Controller/DefaultController.php.

Generate avatar and save it to file

Above example generates avatar file into directory. Directory name is passed in function save as parameter. File name will be generated automatically based on this:

In order to generate avatar with your own filename you can pass filename (e.g image.jpg) as second argument of save method.

Change log

Please see CHANGELOG for more information on what has changed recently.

Troubleshooting

  1. Make sure you have GD installed on your web server. http://php.net/manual/en/function.gd-info.php

All versions of avatar-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.2
symfony/framework-bundle Version 3.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dwr/avatar-bundle contains the following files

Loading the files please wait ....