Download the PHP package laravel-enso/avatarmanager without Composer

On this page you can find all versions of the php package laravel-enso/avatarmanager. 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 avatarmanager

Avatars

Stable Downloads Issues Merge Requests

Description

Avatars is Laravel Enso's user avatar package.

It attaches one avatar record to each user, exposes authenticated endpoints for viewing, uploading, and regenerating avatars, and integrates with Enso's file pipeline so custom uploads are stored and transformed consistently.

The package also generates default avatars automatically. It prefers Gravatar when a public image exists for the user's email address and falls back to a locally generated Laravolt avatar when it does not.

The frontend integration lives primarily in the Enso user profile experience and reusable avatar components from @enso-ui/users.

Installation

This package comes pre-installed in Laravel Enso applications that support user profile avatars.

For standalone installation in an Enso-based application:

The package auto-registers its service providers, loads migrations, registers API routes, observes user creation, and exposes the avatar generation command.

Run the migrations after installation:

If you need the package storage scaffolding, publish it with:

Features

Usage

The package binds an avatar() relation and generateAvatar() method to the Enso user model:

Store a custom uploaded avatar for the authenticated user:

Regenerate the default avatar:

Display an avatar in the browser by hitting the show endpoint:

::: warning Note The package is designed to work with a single avatar per user. When you regenerate or upload a new avatar, the previously attached file is removed automatically. :::

API

Routes

All package routes are registered under:

Endpoints:

Authorization

LaravelEnso\Avatars\Policies\AvatarPolicy

Model

LaravelEnso\Avatars\Models\Avatar

Persisted fields:

Relationships:

Useful methods:

Dynamic User Integration

Dynamic additions on LaravelEnso\Users\Models\User:

Command

Generate missing avatars for users without one:

Depends On

Required Enso packages:

Companion frontend package:

External dependency:

Contributions

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

Thank you to all the people who already contributed to Enso!


All versions of avatarmanager with dependencies

PHP Build Version
Package Version
Requires laravel-enso/core Version ^12.0
laravel-enso/dynamic-methods Version ^4.0
laravel-enso/files Version ^5.7
laravel-enso/image-transformer Version ^2.5
laravel-enso/migrator Version ^2.0
laravel-enso/users Version ^2.8
laravolt/avatar Version ^6.0
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 laravel-enso/avatarmanager contains the following files

Loading the files please wait ...