Download the PHP package a6digital/laravel-default-profile-image without Composer
On this page you can find all versions of the php package a6digital/laravel-default-profile-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download a6digital/laravel-default-profile-image
More information about a6digital/laravel-default-profile-image
Files in a6digital/laravel-default-profile-image
Download a6digital/laravel-default-profile-image
More information about a6digital/laravel-default-profile-image
Files in a6digital/laravel-default-profile-image
Vendor a6digital
Package laravel-default-profile-image
Short Description Laravel package to create default profile image using name of user.
License MIT
Homepage https://github.com/a6digital/laravel-default-profile-image
Package laravel-default-profile-image
Short Description Laravel package to create default profile image using name of user.
License MIT
Homepage https://github.com/a6digital/laravel-default-profile-image
Keywords laravel default profile image
Please rate this library. Is it a good library?
Informations about the package laravel-default-profile-image
Laravel Default Profile Image
Laravel package to create default profile image using name of user.
Installation
Install using composer:
composer require a6digital/laravel-default-profile-image
Edit app/config/app.php
and add the providers
'providers' => [
'A6digital\Image\DefaultProfileImageServiceProvider'
]
Basic Usage
To create a profile image just do
$img = \DefaultProfileImage::create("Name Surname");
\Storage::put("profile.png", $img->encode());
This will create a profile image that has 512px width&height using the first letters of name and surname.
Advanced Usage
Create a white color text over black color background profile image that has 216px width&height.
$img = \DefaultProfileImage::create("Name Surname", 256, '#000', '#FFF');
\Storage::put("profile.png", $img->encode());
Using a custom font
$img = \DefaultProfileImage::create("@ Lamoni", 256, "#212121", "#FFF", '/var/www/public/fonts/RobotoDraftRegular.woff');
\Storage::put("profile.png", $img->encode());
All versions of laravel-default-profile-image with dependencies
PHP Build Version
Package Version
The package a6digital/laravel-default-profile-image contains the following files
Loading the files please wait ....