PHP 클래스 Laravolt\Avatar\Avatar

파일 보기 프로젝트 열기: laravolt/avatar 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$ascii
$availableBackgrounds
$availableForegrounds
$background
$borderColor
$borderSize
$cache
$chars
$defaultFont
$font
$fontFolder
$fontSize
$fonts
$foreground
$height
$image
$initialGenerator
$initials
$name
$shape
$width

공개 메소드들

메소드 설명
__construct ( array $config, Illuminate\Cache\CacheManager $cache, Laravolt\Avatar\InitialGenerator $initialGenerator ) Avatar constructor.
__toString ( ) : String
create ( $name )
getImageObject ( )
getInitial ( )
save ( $path, $quality = 90 )
setBackground ( $hex )
setBorder ( $size, $color )
setDimension ( $width, $height = null )
setFont ( $font )
setFontFolder ( $folders )
setFontSize ( $size )
setForeground ( $hex )
setShape ( $shape )
toBase64 ( )

보호된 메소드들

메소드 설명
buildAvatar ( )
cacheKey ( )
chooseFont ( )
createCircleShape ( )
createShape ( )
createSquareShape ( )
getBorderColor ( )
getRandomBackground ( )
getRandomElement ( $array, $default )
getRandomForeground ( )
setRandomFont ( )

메소드 상세

__construct() 공개 메소드

Avatar constructor.
public __construct ( array $config, Illuminate\Cache\CacheManager $cache, Laravolt\Avatar\InitialGenerator $initialGenerator )
$config array
$cache Illuminate\Cache\CacheManager
$initialGenerator Laravolt\Avatar\InitialGenerator

__toString() 공개 메소드

public __toString ( ) : String
리턴 String

buildAvatar() 보호된 메소드

protected buildAvatar ( )

cacheKey() 보호된 메소드

protected cacheKey ( )

chooseFont() 보호된 메소드

protected chooseFont ( )

create() 공개 메소드

public create ( $name )

createCircleShape() 보호된 메소드

protected createCircleShape ( )

createShape() 보호된 메소드

protected createShape ( )

createSquareShape() 보호된 메소드

protected createSquareShape ( )

getBorderColor() 보호된 메소드

protected getBorderColor ( )

getImageObject() 공개 메소드

public getImageObject ( )

getInitial() 공개 메소드

public getInitial ( )

getRandomBackground() 보호된 메소드

protected getRandomBackground ( )

getRandomElement() 보호된 메소드

protected getRandomElement ( $array, $default )

getRandomForeground() 보호된 메소드

protected getRandomForeground ( )

save() 공개 메소드

public save ( $path, $quality = 90 )

setBackground() 공개 메소드

public setBackground ( $hex )

setBorder() 공개 메소드

public setBorder ( $size, $color )

setDimension() 공개 메소드

public setDimension ( $width, $height = null )

setFont() 공개 메소드

public setFont ( $font )

setFontFolder() 공개 메소드

public setFontFolder ( $folders )

setFontSize() 공개 메소드

public setFontSize ( $size )

setForeground() 공개 메소드

public setForeground ( $hex )

setRandomFont() 보호된 메소드

protected setRandomFont ( )

setShape() 공개 메소드

public setShape ( $shape )

toBase64() 공개 메소드

public toBase64 ( )

프로퍼티 상세

$ascii 보호되어 있는 프로퍼티

protected $ascii

$availableBackgrounds 보호되어 있는 프로퍼티

protected $availableBackgrounds

$availableForegrounds 보호되어 있는 프로퍼티

protected $availableForegrounds

$background 보호되어 있는 프로퍼티

protected $background

$borderColor 보호되어 있는 프로퍼티

protected $borderColor

$borderSize 보호되어 있는 프로퍼티

protected $borderSize

$cache 보호되어 있는 프로퍼티

protected $cache

$chars 보호되어 있는 프로퍼티

protected $chars

$defaultFont 보호되어 있는 프로퍼티

protected $defaultFont

$font 보호되어 있는 프로퍼티

protected $font

$fontFolder 보호되어 있는 프로퍼티

protected $fontFolder

$fontSize 보호되어 있는 프로퍼티

protected $fontSize

$fonts 보호되어 있는 프로퍼티

protected $fonts

$foreground 보호되어 있는 프로퍼티

protected $foreground

$height 보호되어 있는 프로퍼티

protected $height

$image 보호되어 있는 프로퍼티

protected $image

$initialGenerator 보호되어 있는 프로퍼티

protected $initialGenerator

$initials 보호되어 있는 프로퍼티

protected $initials

$name 보호되어 있는 프로퍼티

protected $name

$shape 보호되어 있는 프로퍼티

protected $shape

$width 보호되어 있는 프로퍼티

protected $width