2017 © Pedro Peláez
 

laravel-library laravel-default-profile-image

Laravel package to create default profile image using name of user.

image

a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  • Tuesday, March 13, 2018
  • by toprakkaya
  • Repository
  • 2 Watchers
  • 18 Stars
  • 14,737 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 12 Versions
  • 9 % Grown

The README.md

Laravel Default Profile Image

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Laravel package to create default profile image using name of user., (*2)

Installation

Install using composer:, (*3)

composer require a6digital/laravel-default-profile-image

Edit app/config/app.php and add the providers, (*4)

'providers' => [
    'A6digital\Image\DefaultProfileImageServiceProvider'
]

Basic Usage

To create a profile image just do, (*5)

$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., (*6)

Profile Image, (*7)

Advanced Usage

Create a white color text over black color background profile image that has 216px width&height., (*8)

$img = \DefaultProfileImage::create("Name Surname", 256, '#000', '#FFF');
\Storage::put("profile.png", $img->encode());

Profile Small Image, (*9)

Using a custom font, (*10)

$img = \DefaultProfileImage::create("@ Lamoni", 256, "#212121", "#FFF", '/var/www/public/fonts/RobotoDraftRegular.woff');
\Storage::put("profile.png", $img->encode());

Profile Small Image, (*11)

The Versions

13/03 2018

dev-master

9999999-dev https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

13/03 2018

v2.0.0

2.0.0.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

13/03 2018

v1.0.5

1.0.5.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

27/01 2017

v1.0.4

1.0.4.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

01/05 2015

v1.0.3

1.0.3.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

23/03 2015

v1.0.2

1.0.2.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

23/03 2015

v1.0.1

1.0.1.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

23/03 2015

v1.0

1.0.0.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

23/03 2015

v0.1.0

0.1.0.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

23/03 2015

v0.7.2

0.7.2.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

23/03 2015

v0.7.1

0.7.1.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image

23/03 2015

v0.7

0.7.0.0 https://github.com/a6digital/laravel-default-profile-image

Laravel package to create default profile image using name of user.

  Sources   Download

MIT

The Requires

 

by Hasan Toprakkaya

laravel default profile image