Welcome Guest, Not a member yet? Register   Sign In
phpspreadsheet in Codeigniter4
#1

Hi folks,

I am new in codeigniter 4, when needed to manipulate some excel files in my app I found the phpspreadsheet library convenient for that. However, after installing it using  composer I found it difficult to implement it in my app. 


Even when I tested their example hereafter couldn't work instead displayed 

<?php

require 'vendor/autoload.php';

use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;

$spreadsheet = new Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();
$sheet->setCellValue('A1', 'Hello World !');
$writer = new Xlsx($spreadsheet);
$writer->save('hello world.xlsx');

[font=Tahoma, Verdana, Arial, sans-serif][font=Tahoma, Verdana, Arial, sans-serif]r[/font][font=Tahoma, Verdana, Arial, sans-serif]eq[/font][font=Tahoma, Verdana, Arial, sans-serif]uire(vendor/autoload.php): failed to open stream: No such file or directory [/font][/font]


[font=Tahoma, Verdana, Arial, sans-serif]I need a help on how to set it up and use it in my app.[/font]

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
phpspreadsheet in Codeigniter4 - by kabata+ - 08-20-2020, 01:06 PM
RE: phpspreadsheet in Codeigniter4 - by jreklund - 08-20-2020, 11:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB