laravel-enso/avatarmanager

User Avatar manager dependency for Laravel Enso


README

StyleCI Codacy Badge License Total Downloads Latest Stable Version

User Avatar manager dependency for Laravel Enso.

Watch the demo click on the photo to view a short demo in compatible browsers

Features

  • comes with a table migration, in order to be able to store avatar related data
  • includes model, routes & controllers
  • creates a folder used to store the avatar files and a default avatar for users that do not have an avatar set
  • uses the File Manager package for uploading the avatar files
  • uses the Image Transformer package for cropping and optimizing the avatar files

Notes on usage

Since this package is using image processing libraries and these underlying libraries may use a lot of memory, especially if the processed files are large (for example, for an 8MB image file, more than 128MB of memory might be used ), make sure to configure php accordingly and/or do ini_set(‘memory_limit’, ‘256M’);

Failure to do so may result in silent errors if alloted memory is insufficient.

Publishes

  • php artisan vendor:publish --tag=avatars-storage - storage folder and default avatar

Notes

The Laravel Enso package comes with this package included.

Depends on:

Contributions

are welcome. Pull requests are great, but issues are good too.

License

This package is released under the MIT license.