Background image
Function Prototype
setBackgroundImage(string $imagePath): self
setBackgroundImageBuffer(string $imageBuffer): selfstring $imagePath
string $imageBuffer
Example
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$excel->fileName('tutorial.xlsx', 'sheet1')
->setBackgroundImage('./assets/logo.png')
->output();Last updated