Usage:
$properties = [
'logo' => [
'text' => 'AVATAR',
'auto_width' => TRUE,
],
'header' => [
'text' => 'header',
'shadow' => ['use' => true, 'color' => '#666', 'x' => 1.5, 'y' => 1.5],
'auto_wrap' => ['use' => TRUE, 'maxwidth' => 100],
'position' => ['y' => 'top'],
'margin' => ['top' => 40]
],
'bottom' => [
'text' => 'footer',
'shadow' => ['use' => true, 'color' => '#666', 'x' => 1.5, 'y' => 1.5],
'auto_wrap' => ['use' => TRUE, 'maxwidth' => 100],
'position' => ['y' => 'bottom'],
'margin' => ['bottom' => 30]
]
];
$new_logo = new \Ojovent\LogoMaker( $properties );
$new_logo->create_logo( 'source/logo_1.png', '/Users/omeryilmaz/Workspace/logo_create/new_logo.png', TRUE);
$properties2 = [
'logo' => [
'text' => 'FooD',
'font' => ['color' => '#666','size'=>30],
'position' => ['x'=>'left'],
'margin' => ['top'=>5,'left'=>20]
],
'logo2' => [
'text' => 'Life',
'font' => ['color' => '#F00','size'=>30],
'position' => ['x'=>'right'],
'rotation' => 30,
'margin' => ['top'=>-10,'right'=>20]
],
'bottom' => [
'text' => 'best deserts',
'font' => ['color' => '#666','size'=>10],
'shadow' => ['use'=>true,'color'=>'#fff','x'=>1,'y'=>1],
'auto_width' => 0,
'auto_wrap' => ['use'=>TRUE,'maxwidth'=>1000],
'position' => ['y'=>'bottom','x'=>'right'],
'margin' => ['bottom'=>10,'right'=>10]
]
];
$new_logo2 = new \Ojovent\LogoMaker($properties2);
$new_logo2->create_logo( 'logo_2.png','/Users/omeryilmaz/Workspace/logo_create/new_logo2.png');