Rotation
Function Prototype
rotation(int $angle): selfint $angle
Example
$config = [
'path' => './tests'
];
$excel = new \Vtiful\Kernel\Excel($config);
$fileObject = $excel->fileName('tutorial.xlsx');
$fileHandle = $fileObject->getHandle();
$rotate45 = (new \Vtiful\Kernel\Format($fileHandle))
->rotation(45)
->toResource();
$vertical = (new \Vtiful\Kernel\Format($fileHandle))
->rotation(270)
->toResource();
$fileObject->header(['flat', 'tilted', 'vertical'])
->insertText(1, 0, 'normal')
->insertText(1, 1, 'tilted', null, $rotate45)
->insertText(1, 2, 'vertical', null, $vertical)
->output();Last updated