PHP Class Learner\Services\Image\AvatarManagerService

Inheritance: extends ImageManagerService, use trait ManagerTrait
Datei anzeigen Open project: RryLee/learner.video

Protected Properties

Property Type Description
$directory string The directory to safe image uploads to.
$extension string The extension to use for image files.
$fontSize integer The dimensions to resize the font size to.
$height integer The dimensions to height the image to.
$quality integer The quality the image should be saved in.
$width integer The dimensions to width the image to.

Public Methods

Method Description
__construct ( ) Create the avatar directory.
generateAvatar ( string $name ) : Avatar Generate a avatar by a name.

Protected Methods

Method Description
createDirectory ( string $dir ) Create the avatar directory.
getFilePath ( string $name ) : string Get the file path in public folder.

Method Details

__construct() public method

Create the avatar directory.
public __construct ( )

createDirectory() protected method

Create the avatar directory.
protected createDirectory ( string $dir )
$dir string

generateAvatar() public method

Generate a avatar by a name.
public generateAvatar ( string $name ) : Avatar
$name string
return Laravolt\Avatar\Avatar

getFilePath() protected method

Get the file path in public folder.
protected getFilePath ( string $name ) : string
$name string
return string

Property Details

$directory protected_oe static_oe property

The directory to safe image uploads to.
protected static string $directory
return string

$extension protected_oe static_oe property

The extension to use for image files.
protected static string $extension
return string

$fontSize protected_oe static_oe property

The dimensions to resize the font size to.
protected static int $fontSize
return integer

$height protected_oe static_oe property

The dimensions to height the image to.
protected static int $height
return integer

$quality protected_oe static_oe property

The quality the image should be saved in.
protected static int $quality
return integer

$width protected_oe static_oe property

The dimensions to width the image to.
protected static int $width
return integer