Download the PHP package hassanalisalem/laravel-initial-image without Composer
On this page you can find all versions of the php package hassanalisalem/laravel-initial-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hassanalisalem/laravel-initial-image
More information about hassanalisalem/laravel-initial-image
Files in hassanalisalem/laravel-initial-image
Download hassanalisalem/laravel-initial-image
More information about hassanalisalem/laravel-initial-image
Files in hassanalisalem/laravel-initial-image
Vendor hassanalisalem
Package laravel-initial-image
Short Description Laravel package to create default profile image using name of user.
License MIT
Homepage http://www.anacoder.net
Package laravel-initial-image
Short Description Laravel package to create default profile image using name of user.
License MIT
Homepage http://www.anacoder.net
Keywords laravel default profile image
Please rate this library. Is it a good library?
Informations about the package laravel-initial-image
Laravel initial Image
Laravel package to create default profile image using first two letters of a name.
Installation
Install using composer:
composer require hassanalisalem/laravel-initial-image
Edit app/config/app.php and add the providers
'providers' => [
'hassanalisalem\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-initial-image with dependencies
PHP Build Version
Package Version
The package hassanalisalem/laravel-initial-image contains the following files
Loading the files please wait ...